Event px trigger type selection
Hi All,
Can anyone tell me which trigger type needed to select for event px.
Pre or post?
I knew the basic defination of pre and post like
‘
- Pre – This trigger type signals a point prior to the occurrence of an action. The Pre trigger is commonly used for events that require data validation or other preparations for the upcoming action. Event Handlers are invoked synchronously from the Pre trigger point.
- Post – This trigger type signals a point immediately after the action’s changes are committed to the database. The post trigger is commonly used for Events that perform auditing tasks, notifications, and integration tasks with external systems related to the completed action. Event Handlers are invoked synchronously or asynchronously from the Post trigger point.
And anyone tell me with example the constraint of pre and post ?
What is need of creating two trigger type and case where only pre or post exclusively uss.
Thanks
Priyanka
Use pre to stop the user action, such as a custom validation, or to modify any dirty attributes. Use post to modify anything else on the record.