Hi, i'm updating item price via mass update. I hav...
# ask-stanley-ai
w
Hi, i'm updating item price via mass update. I have userEvent script which performs some task ,every time item is updated. I'm expecting that whenever i update the item through Massupdate, userEvent script should trigger , but that is not the case . Does any one know what may be the issue ??
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the User Event script does not trigger when a standard Mass Update is performed. This is because the Mass Update does not pass the full record to the User Event script, but only the fields that are actually changed by the Mass Update. One workaround suggested is to flag items during the Mass Update (for example, by checking a "prevent ue script" checkbox) to identify not to run the core of the User Event script. Another point to note is that a User Event script will not be triggered if another User Event script is updating a record. If you want the after submit or before submit script to run then you have to edit the record from a Schedule script, Map/Reduce script or Suitelet. Here are some relevant links for further reading: - [Execution Context Types](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_157960811083.html) - [How User Event Scripts are Executed](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1512409310.html#How-User-Event-Scripts-are-Executed) ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855830789
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847111404
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839573562
Please provide your feedback on this answer.