I’m trying to understand whether using record.subm...
# ask-stanley-ai
m
I’m trying to understand whether using record.submitFields() will trigger any workflows or User Event scripts (like beforeSubmit or afterSubmit). I know record.save() does, but is it the same for submitFields()?”
c
AI generated answer (using internal Slack threads):
Based on the conversations, using
record.submitFields()
will indeed trigger User Event scripts and workflows, provided that the script deployment is set up for it. This means that the script deployment's audience should allow whatever you are testing, its status should be released, and the context filtering should match whatever context you are using. However, it's important to note that User Event scripts do not trigger other User Event scripts or event-based workflows. This means that if you're trying to create a recursive operation for the same record type using User Event scripts, it won't work. Also,
record.submitFields()
is more efficient than loading and saving the record, but it can't be used if you need to update sublist/lines. ****** 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.876698375
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.865363896
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858623326
Please provide your feedback on this answer.
Thank you for your feedback