• batrulz
  • NEWBIE
  • 10 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies
I am trying to work with a 3rd party service api . One of the methods they have brings in all records which takes a lot of time , about 9 mins ( i tried this using chrome app "Advanced Rest Client"). Resetting the HttpRequest timeout to 120 secs (which is the max) in Salesforce doesn't really help here. Any other suggestions ?
I am new to using Rest services .I am trying to access Rally rest service (https://rally1.rallydev.com/slm/doc/webservice/) , i tried using :

HttpRequest req = new HttpRequest();
     req.setEndpoint('https://rally1.rallydev.com/slm/webservice/v2.0/task.js');
     req.setMethod('GET');
    
     // Specify the required user name and password to access the endpoint
     // As well as the header and header information

     String username = 'myname';
     String password = 'mypwd';
 
     Blob headerValue = Blob.valueOf(username + ':' + password);
     String authorizationHeader = 'BASIC ' +
     EncodingUtil.base64Encode(headerValue);
     req.setHeader('Authorization', authorizationHeader);
  
     // Create a new http object to send the request object
     // A response object is generated as a result of the request 
 
     Http http = new Http();
     HTTPResponse res = http.send(req);
     System.debug(res.getBody());


But it didnt work , i go a 401 response code back.
How do i get the security token and use it in my queries ? Has anyone integrated with Rally using Apex ?

I want to remove the query string from the url once i have extracte it in the Controller,

for eg. http://c.cs1.visual.force.com/apex/testPage?param=test

After the controller picks up the param value I want the url to say http://c.cs1.visual.force.com/apex/testPage

How do i do it ?

I want to pass a field in the query string from asp .net to Apex . I want to encrypt the value of the field and then pass it in the query string. I am not sure how to approach this, are there any example code /links for same ? Basically i want to encrypt in C# and decrypt using Apex.

Hello,

We have an Asp .net application , in which we have a button ; which when clicked takes you the salesforce create case page. Is it possible that when we take them to the create case page, I can pass some values and populate some fields on that page?

 

Thanks in advance.

I am new to using Rest services .I am trying to access Rally rest service (https://rally1.rallydev.com/slm/doc/webservice/) , i tried using :

HttpRequest req = new HttpRequest();
     req.setEndpoint('https://rally1.rallydev.com/slm/webservice/v2.0/task.js');
     req.setMethod('GET');
    
     // Specify the required user name and password to access the endpoint
     // As well as the header and header information

     String username = 'myname';
     String password = 'mypwd';
 
     Blob headerValue = Blob.valueOf(username + ':' + password);
     String authorizationHeader = 'BASIC ' +
     EncodingUtil.base64Encode(headerValue);
     req.setHeader('Authorization', authorizationHeader);
  
     // Create a new http object to send the request object
     // A response object is generated as a result of the request 
 
     Http http = new Http();
     HTTPResponse res = http.send(req);
     System.debug(res.getBody());


But it didnt work , i go a 401 response code back.
How do i get the security token and use it in my queries ? Has anyone integrated with Rally using Apex ?

Hi All,

 

I have  a Scheduler Apex class which will retreive all the contacts whose birthday is coming in next two days and send a mail to the contact owner with the list of contacts with upcomin birthdate.

 

 The body of the mail is dynamically calculated and put in the setHTML body of the singlemail message, I cannot use MassEmail Message as body of the each mail is not same.

 

This class will throw an exception if email message sent is more than 10 contact owners.

 

I cannot use MassEmail Message  with  same email template as body of the each mail is not same.

 

Can anyone please suggest what could be the work around for this iisue.

 

 

Thanks,

Srilakshmi B