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
Satish PalyamSatish Palyam 

How to send an outbound message without changing the record

We have a need where we want to push out some records from Salesforce using already defined Outbound Message. However, we donot want to update these records. Currently on create or update outbound message is triggered. However, some of the records gone out-of-sync with backend systems and now we would like to push out the current state of these records wtihout making any changes ont these records. Please adivse the best possible way. 

One way, i could think is the create a custom field and update this field using Data loader, which eventually triggers the outbound message. 
Daniel BallingerDaniel Ballinger
What happens if you use Apex to call update on a record, but don't actually change any fields? Does it fire off the update outbound message?

Otherwise, as you say, you could add a dummy field whose sole purpose is to trigger the outbound message to be sent.

Another option would be to create Apex classes that can call the WSDL defined for the outbound message. Then use Apex to manually invoke the existing web service that you have to process the outbound messages. See Invoking Callouts Using Apex