• Subbu's
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 10
    Questions
  • 13
    Replies

Hello ,

 

In my controller i have the SOQL with the where condition as '  Createddate = Yesterday '.My functionality is working .

 

While writing the test class for controller , the query is not satisfying ..because when record is created ,its not possible to edit the Created date field ..

 

How can i proceed now??

 

Thanx in advance.

Hello Everybody ,

 

I am trying to get list of Activities from Google+

 

I was used the scopes and Endpoint URL taking the reference of OAuth play ground ..

 

But , in the OAuth play ground and in my controller it is returing the message as follows.

{
 
"error":{
 
"errors":[
   
{
   
"domain":"usageLimits",
   
"reason":"accessNotConfigured",
   
"message":"Access Not Configured"
   
}
 
],
 
"code":403,
 
"message":"Access Not Configured"
 
}
}


Can any body help to know me why this error is ?
Did I need to change any settings in my Google+ or in Google Apps?

Hello Everybody ,

 

My requirement is as follows .. plz go through and help me to solve this.

 

--->  I am having one leave object with custom fields leave_from_date and leave_to_Date of Date type .

 

--->  In the trigger which is on other object , i am  have a Set collection of Dates i.e; Set<date>

 

---->  I need to get all leave records using this set collection.

 

Example -- I am having the leave recpord with  leave_from_date = 3-10-2013 and leave_to_ date = 05-10-2013 . And in the Set collection the available dates are (02-10-2013 and 04-10- 2013)

 

then What is the SOQL to get the leave record using this set collection..?

 

Thanx in advance

 

 

Hello Everyone ,

 

We have a requirement to display the list of WF and WF actions in a VF page .

Also if any WF action is Email Alert we need to know the Email Template used for this alert.

Can any one help me to find this using apex code .. Which object i have to use to query my require things.

 

Thx in Advance ,

 

 

  • September 21, 2013
  • Like
  • 0

Hii everybody ,

 

I am having a requirement to bring the list of Workflow rules and its actions defined on a particular Object into controller .But i was not found any object which saves the workflow rules.Can you share your ideas ,how to achieve my requirement.

 

Thanx in advance ..

  • September 18, 2013
  • Like
  • 0

Hii everybody ,

 

I was created an Inbound Email service which creates a custom object record in my org .

 

The Email sevice is working fine for the domains gmail and yahoo . But when i send a mail from our  company domain thaEmail Service  is not working ..can anybody help me  to find what the problem is ?(Its not even showing any logs )

 

Did i need to set any SMTP port settings for our domain?

 

Thanx to everyone in advance.

 

  • September 17, 2013
  • Like
  • 0

Hello Everyboby ,

 

I want to send an email with Messaging.sendEmail method with a pdf attachment ,but the problem is pageReference.getContent() method will not work in the scheduled class . So can anyone have the idea how to acheive this functionality in scheduled class.KIndly share me your ideas about this..

 

Thanx in Advance.

  • September 05, 2013
  • Like
  • 0

Hello ,

 

 I am looking to add Invitees to an event through apex code , I was succeded to do this using Event Relation Object , but the problem is  I am not able to send any mails like the standard button did..

 

Can any one plz suggest me how to send an email after creating Event Relation record ..

 

Thx in advance ..

Hi Everybody ,

 

I am trying to make a HTTP request to Google+ Moments Insert method ..by taking the reference as below link.

https://developers.google.com/+/api/latest/moments/insert

 

Here is  the code  used ..

 

      Http httpm = new Http ();
      HttpRequest httpReqm = new HttpRequest();
      HttpResponse httpResm = new HttpResponse();
      httpReqm.setMethod('POST');
      String EndPointURL1 = 'https://www.googleapis.com/plus/v1/people/me/moments/vault';
      httpReqm.SetEndpoint(EndPointURL1);
     // String AuthHead = tokenType + ' '+AccessToken ;  
      httpReqm.setHeader('Authorization',AuthHead);
     httpReqm.setBody('{
                                             "Type"   : "http://schemas.google.com/AddActivity" ,
                                             "target" : {
                                                                "tragetURL" : "https://developers.google.com/+/plugins/snippet/examples/thing"
                                                             }
                                        }');
      httpResm = httpm.send(httpReqm);

 

I am Getting the response ..as

 

{ "error": { "errors": [ { "domain": "global", "reason": "parseError", "message": "This API does not support parsing form-encoded input." } ], "code": 400, "message": "This API does not support parsing form-encoded input." } }.

 

Also,I was used scope as they mentioned in the API above .

 

Can anyone plz clarify me how to set the Request body for this request. and get the proper response.

Can any one give me a idea how to know the current record which is processing in execute Method of batch class..

 

Thx in Advance ...

Hello ,

 

 I am looking to add Invitees to an event through apex code , I was succeded to do this using Event Relation Object , but the problem is  I am not able to send any mails like the standard button did..

 

Can any one plz suggest me how to send an email after creating Event Relation record ..

 

Thx in advance ..

Hello everybody ,

 

  I am having a Situation to get the object level permissions(like modify ,delete ,etc) of a standard user on custom objects in controller , can anybody have the idea how to acheive this?

  • November 25, 2013
  • Like
  • 0

Hello Everybody ,

 

My requirement is as follows .. plz go through and help me to solve this.

 

--->  I am having one leave object with custom fields leave_from_date and leave_to_Date of Date type .

 

--->  In the trigger which is on other object , i am  have a Set collection of Dates i.e; Set<date>

 

---->  I need to get all leave records using this set collection.

 

Example -- I am having the leave recpord with  leave_from_date = 3-10-2013 and leave_to_ date = 05-10-2013 . And in the Set collection the available dates are (02-10-2013 and 04-10- 2013)

 

then What is the SOQL to get the leave record using this set collection..?

 

Thanx in advance

 

 

Hello Everyone ,

 

We have a requirement to display the list of WF and WF actions in a VF page .

Also if any WF action is Email Alert we need to know the Email Template used for this alert.

Can any one help me to find this using apex code .. Which object i have to use to query my require things.

 

Thx in Advance ,

 

 

  • September 21, 2013
  • Like
  • 0

Hii everybody ,

 

I was created an Inbound Email service which creates a custom object record in my org .

 

The Email sevice is working fine for the domains gmail and yahoo . But when i send a mail from our  company domain thaEmail Service  is not working ..can anybody help me  to find what the problem is ?(Its not even showing any logs )

 

Did i need to set any SMTP port settings for our domain?

 

Thanx to everyone in advance.

 

  • September 17, 2013
  • Like
  • 0

Hello Everyboby ,

 

I want to send an email with Messaging.sendEmail method with a pdf attachment ,but the problem is pageReference.getContent() method will not work in the scheduled class . So can anyone have the idea how to acheive this functionality in scheduled class.KIndly share me your ideas about this..

 

Thanx in Advance.

  • September 05, 2013
  • Like
  • 0

Hi Everybody ,

 

I am trying to make a HTTP request to Google+ Moments Insert method ..by taking the reference as below link.

https://developers.google.com/+/api/latest/moments/insert

 

Here is  the code  used ..

 

      Http httpm = new Http ();
      HttpRequest httpReqm = new HttpRequest();
      HttpResponse httpResm = new HttpResponse();
      httpReqm.setMethod('POST');
      String EndPointURL1 = 'https://www.googleapis.com/plus/v1/people/me/moments/vault';
      httpReqm.SetEndpoint(EndPointURL1);
     // String AuthHead = tokenType + ' '+AccessToken ;  
      httpReqm.setHeader('Authorization',AuthHead);
     httpReqm.setBody('{
                                             "Type"   : "http://schemas.google.com/AddActivity" ,
                                             "target" : {
                                                                "tragetURL" : "https://developers.google.com/+/plugins/snippet/examples/thing"
                                                             }
                                        }');
      httpResm = httpm.send(httpReqm);

 

I am Getting the response ..as

 

{ "error": { "errors": [ { "domain": "global", "reason": "parseError", "message": "This API does not support parsing form-encoded input." } ], "code": 400, "message": "This API does not support parsing form-encoded input." } }.

 

Also,I was used scope as they mentioned in the API above .

 

Can anyone plz clarify me how to set the Request body for this request. and get the proper response.

i want to insert an event record...but like i have more than 1 lead..i want to insert more than 1 leads as an invitee...

Like using whoid we can insert 1 record ... Using the standard interface we can click on add to inviteesbutton and add multiple invitees..How to add multiple using code so that it shows below on salesforce events...any help will be appreciated...

 

Event e= new Event();
e.Subject='Call';
e.ownerid=userinfo.getuserid();
e.StartDateTime=datetime.now().adddays(5);
e.EndDateTime=datetime.now().adddays(5);
e.WhatId=recid;
**//e.WhoId=**
insert e;