How to run Post commit activities.
Requirement : When a work object is commited I need to generate a report using the updated values of that object from DB.
Solution Tried :
I created a declare trigger which executes Commited and Saved option.
Problem Faced :
When I traced I found that Declare tigger gets executed even when the object is not written to DB. Even the commit operation is not complete the activity written in the Declare Trigger gets called giving me old values from DB
Is there any other approach that I can use so that my activity gets called post commit to DB.
***Updated by Moderator: Lochan. Removed user added helpme and Ask the Expert tags. Apologies for confusion, shouldn't have been an end-user option***