Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Salesforce by (11.9k points)

I want to listen to the change in my legacy system whenever there is any change in SF object (add/update/delete). So I have created an outbound message and workflow. But in workflow, I don't see any way to fire if the object is deleted.

Is there any way I can trigger an outbound message on record delete? I know have heard that it can be done by a trigger. But I don't want to write apex code for this.

1 Answer

0 votes
by (32.1k points)
edited by

I don't think this can be done, the workflow actions are decoupled from the workflow rule (they can be reused as well) so they apparently don't receive the transaction scope and when they execute the record is already gone and any reference inside action would point to a non-existing data. Thus, the only way I know how to do it is via a trigger.

To learn in-depth about Salesforce, sign up for industry-based Salesforce Training!

Related questions

0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer
0 votes
1 answer
asked Nov 23, 2020 in Salesforce by Sudhir_1997 (55.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...