User Event Script is not triggered when data is updated on the SCA site for the customer.

Slack Notes May 17th 2019

Issue: There is a UE after submitting script which calls the external URL when a customer is created on the SCA site. When something is updated on SCA site for that customer, the data is updated in NS but the script is not being triggered. The reason why the UE script is not triggered in NS when we update something on SCA.

Solution : customer.updateProfile doesn’t trigger user events.

Alternate way : It depends on what you want to achieve but:

  1. Every time you update the profile, you could also update a custom entity field of type checkbox, as a flag like “needs update=T” and have a map reduce the search for that, do the work, and blank it again.

2) You could port the code to call the external API to run on SCA too (in your customer model)

3) You could call a suitelet after the update profile function that does the work for you (edited).


Leave a comment

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