You need to sign in to do that
Don't have an account?

Triggering outbound message on deleting or merging contact object.
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
Hi,
I dont think you can do it through standard functionality. You have to write a trigger on "after delete" event of trigger and use Http classes to generate the required SOAP message through Apex.
Hope it helps.
Adi.
You could write a trigger on the object to do the outbound message on deletion.
EG:
if (Trigger.isDelete){
// Code to do the outbound message
}
Can you pls provide me the Code snippet for this please.
What bit do you want help with? above is the outline for doing the trigger...
Oh1 I was confused . Done now...
Anyways thanks for your time..
Trigger and a Controller does this . cool
hi @krpr, glad you have solved the problem.
i know now from these thread that we can set trigger on contact delete action and then trigger the outbound message from inside the Apex trigger.
but how do exactly we trigger the outbound message, can you provide some code sample ?
that would help greatly, thanks.