Trigger suite script on lead conversion

Issue

We have before load user event script which defaults the ‘ship complete’ field = ‘T’. This works fine on the UI. However, when a lead is converted to a customer by creating an SO (or checking out on the store) the script does not fire when the customer is converted. I can’t find an event type that works for this – it does not appear that suite script runs at all on conversion. I also tries aftersubmit – no luck.

Solution

The script does not trigger because no actual record submission is performed during the Lead/Customer transformation. What you can do is deploy the user event to the sales order instead. After the sales order record is saved, you can then retrieve the newly-converted customer ID and manipulate the customer record any way you like.

Leave a comment

Your email address will not be published. Required fields are marked *