• adi.sfdcpro
  • 0 Points
  • Member since 2012

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 3
I would like to able to merge Companies and Contacts on Salesforce regardless of whether or not the Companies and Contacts have been integrated to another system. 
When the records are merged I would like the other systems integrated to Salesforce to be notified. 
After the merge has completed the Id's of the record that has been updated will be sent from Salesforce to <External System> 
The Id's of the records that have been deleted as part of the merge process will also be sent to <External System>
I wanted to know if there is a way to trigger the outbound message when a contact is deleted. It seems that it does not trigger the outbound message when an existing contact is deleted or merged.
If yes could you please provide a working example.
Thnaks in advance
  • April 30, 2012
  • Like
  • 0

I get the endpoint where the request has to be sent at runtime. Later i want to send an HTTP post request to this endpoint, so I have to create a remote site setting too at runtime.

Is there a way to create a remote site setting through apex code?




Hi developers,

                  I am getting 302, 401 & 404 status code errors from authentication to google api. what i am missing please help me 


public class GoogleCalendar
public void detail()
Http h = new Http();
HttpRequest req = new HttpRequest();
final string username = 'sreenath.sfdc@gmail.com';
final string password = 'Password';
//final string apikey='AIzaSyDaQK60dlM-7icVukY0sbaOHae9eLn3dKk';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
// auth url is https://www.googleapis.com/auth/calendar
req.setHeader('Content-Type', 'application/Json');
HttpResponse res = h.send(req);