function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
clstantonclstanton 

Help with outbound message format and SOAP callout

I am working on a project to integrate SFDC Cases into a backend system.  To integrate the 2, the backend system has a listener that captures outbound messages from the Case object (and 3 related custom objects), and uses that soap data to update the case in that system.  All is good.

 

We are now ready to roll out the solution, and are told that users need to be able to delete records (like Cases) in SFDC, and have that delete occur in the backend system as well.  So we are using a before delete trigger in SFDC to send a SOAP message to the external system to delete the record there, and then the delete occurs in SFDC. 

 

The thing is, since the listener is already set up in the external system, all I want to do is send a SOAP message in the same format as an outbound message to the external system with a certain value that will result in the deletion there.  (For example, Case.Mark_for_Delete__c = -1).  So really, in the external system, it is just an update, so that same format will work fine.

 

My question is:  what is the <Id> field under the <Notification> node in the outbound message?  I am making the apex that generates the SOAP message as dynamic as possible, so that we can migrate from sandbox to QA, to PD, so I want all values that change from instance to instance to be dynamic, but I can't figure out where the value of that ID comes from.  I get the <OrganizationId>, and the <Id> of the object (for the record), but don't know what the Notification Id is.


Pleaes help!!!

SuperfellSuperfell

Its the Id of the notification, each item in the OM queue has an id, and its sent on every delivery attempt, the client can use it to detect (and then ignore) notifications that its already processed (as the OM messaging is at least once delivery)

clstantonclstanton

Thanks Simon.  Apparently for the the SOAP callout, this ID needs to be there, but the value doesn't matter if it's not an Outbound Message.  Does that sound right?

SuperfellSuperfell

It would depend on how the listener is built.