Discussions
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):