Hi Everyone,
I am facing an issue with a Lead trigger in Salesforce.
When I create a new Lead from the Lightning Experience UI, both the before/after insert and before/after update trigger events are getting executed during the same transaction.
However, when I create the same Lead from Salesforce Classic or apex, only the insert
trigger events are executed, which is the behavior I expect.
Has anyone experienced this behavior before? Is there any standard Lightning behavior that causes an immediate update after record creation?
Please help me out.
Thanks
#Salesforce Developer #TrailblazerCommunity
,
I am not using any custom UI for the lead record creation and using standard salesforce functionality. No active assignment rules, duplicate rules and even no automations such as flows, workflow rules, etc. Check the similar issue raised here
https://stackoverflow.com/questions/50465033/trigger-is-running-even-if-i-create-a-new-lead