Does `N/record` `submitFields` trigger user event ...
# ask-stanley-ai
p
Does
N/record
submitFields
trigger user event scripts?
c
AI generated answer (using internal Slack threads):
Yes, the
N/record
submitFields
method in SuiteScript does trigger User Event scripts. However, it's important to note that the context in which the User Event script is triggered is similar to an inline edit. This means that the new record will only contain the id and the fields that were changed. In the User Event script, you might encounter fields that return as null even though they aren't, because the record object provided in the User Event script isn't the full record. It only contains the fields that were changed. If you want to avoid triggering a User Event script when using
submitFields
, you can configure the User Event script to ignore the XEDIT (Inline Edit) event type. ****** 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.861328125
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856323242
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854797363
Please provide your feedback on this answer.