0 votes
1 view
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 (31.6k 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.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...