Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Do getValue API calls affect performance?
I submitted the following case and received a response that the information was not available and that they would be creating an enhancement request (144860). Does anyone have any experience that could answer the following:
I am wondering if calls to getValue APIs have an affect on performance, for example, consider the following code:
if(nlapiGetFieldValue('custbody_order_status') != rstPO.getFieldValue('custbody_order_status'))
{
strEmail = strEmail + 'Order Status: from(PO) ' + rstPO.getFieldValue('custbody_order_status') + ' to(SO) ' + nlapiGetFieldValue('custbody_order_status') + '';
rstPO.setFieldValue('custbody_order_status', nlapiGetFieldValue('custbody_order_status'));
}
would it be better to use variables and make the getValue calls only once (for performance):