Question

9
Replies
2479
Views
Avinash.Haridasu Member since 2014 260 posts
Morgan Stanley
Posted: 2 years ago
Last activity: 1 year 1 month ago
Closed

When does a declare trigger exactly gets executed

Scenario 1:

1. When i save a WO1 using Obj-Save, trigger is executed. When i'm manipulating some objects in the trigger should i explicitly add any writenow/commit statements or will they be part of the same commit transaction of the WO1. If yes, suppose in an activity i have update the WO1 and issues commit in the immediate next statement. What happens to he deferred statements in the trigger?

2. Similar is the case with commited save trigger. Will the trigger be executed before the object is comitted to database. If yes, will the commit be deferred till the trigger execution is completed. I mean if declare trigger takes 2 minutes to complete, will the WO comitting be put on hold till then?

***Moderator Edit: Vidyaranjan | Updated Platform Capability***

Case Management
Moderation Team has archived post
Share this page LinkedIn