Ron
06/06/2025, 1:43 PMCeligo AI
06/06/2025, 1:43 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** If your User Event script on a Purchase Order is not triggering, there could be several reasons for this. Here are some things you can check: 1. Ensure that the 'Deployed' checkbox is checked. 2. Make sure the status is set to 'Released'. 3. The 'Inactive' checkbox should be unchecked. 4. If you are trying to debug the script, ensure that you are the owner and the status is set to 'Testing'. 5. To confirm if the script is running, try using
log.debug
and ensure the log level in the deployment is set to 'Debug'.
It's also important to note that User Event scripts do not trigger for all actions. For example, drop ships do not trigger the beforeSubmit event. This is due to NetSuite's design to avoid infinite looping. Unfortunately, there isn't a comprehensive source of documentation that outlines what triggers what events and what doesn't. A lot of this understanding comes from practice and experience.
If you are trying to disable line fields based on a field in the user record when the 'Receive' button on the Purchase Order is clicked, you should use a beforeLoad User Event script deployed on the item receipt.Celigo AI
06/06/2025, 1:43 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863978267
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863249838
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857802153
Celigo AI
06/06/2025, 1:43 PM