In APM, I looked at the breakdown for a script exe...
# ask-stanley-ai
a
In APM, I looked at the breakdown for a script execution and it listed nlapiSubmitField among the APIs that executed. However, this is for a 2.0 API script, which uses Record.submitFields() not nlapiSubmitField. Why is nlapiSubmitField showing up in the APM breakdown?
c
AI generated answer (using internal Slack threads):
The APM (Application Performance Management) tool in NetSuite is designed to provide insights into the performance of your scripts and workflows. When you see
nlapiSubmitField
listed in the APM breakdown for a SuiteScript 2.0 script, it's because SuiteScript 2.0 methods are often proxies for SuiteScript 1.0 methods. In this case, the
Record.submitFields()
method in SuiteScript 2.0 is a proxy for the
nlapiSubmitField
method in SuiteScript 1.0. This means that when you call
Record.submitFields()
in a SuiteScript 2.0 script, it's actually executing the
nlapiSubmitField
method behind the scenes. This is why you're seeing
nlapiSubmitField
listed in the APM breakdown, even though your script is written using SuiteScript 2.0. It's simply a reflection of how the SuiteScript 2.0 methods are implemented internally. ****** 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.845275939
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841247618
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838989377
Please provide your feedback on this answer.
Thank you for your feedback