When a lead is created, the BeforeSave event will be triggered twice.
- SAP Cloud for Customer
- SAP Cloud Applications Studio
This the standard system behavior. The BeforeSave in a Lead always gets executed twice is necessary to trigger lead routing rule during save of a newly created lead. Currently, there is not any specific way to avoid this implementation.
KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To