The sales rep field value in the lead record is populated using a workflow. For the combination of scripts and workflows, it will still follow the scripted record order. However, the script is being executed first, followed by workflow. This was the reason, in the user event scripts, old records, and new records remained the… Continue reading In the lead record, the sales rep field value is the same in the user-event script for old and new records.