Which runs first a client script or a workflow
# ask-stanley-ai
r
Which runs first a client script or a workflow
c
AI generated answer (using internal Slack threads):
In NetSuite, when executing the handlers for a given event, scripts run first before workflows. This is applicable as long as they are within the same entry point. The reason behind this is that scripts are designed to modify the record before NetSuite starts processing it. If workflows were to run first, it would defeat the purpose of having a script that can modify the record. For instance, in a NetSuite record, User Event scripts trigger first before workflows. This order of execution is not explicitly documented but is generally accepted within the NetSuite community. ****** 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.838077068
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832270145
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831334233
Please provide your feedback on this answer.