Sample fields to watch: body field (entityname), custom body field (custbody2), line item id (item).
Debug New Script:
var record;
var searchresults = nlapiSearchRecord( 'salesorder', null, null, null );
for ( var i = 0; i < Math.min( 500, searchresults.length ); i++){
record = nlapiLoadRecord(searchresults[i].getRecordType(),searchresults[i].getId() );
nlapiLogExecution('DEBUG','record id', record.getId());
}
Go to Watches tab and enter these 3 into the Add Watch field to add them as watches:
record.fields.entityname
record.fields.custbody2
record.sublists.item.line1.item
NOTE:
A need to monitor values of fields (custom or standard) and sub lists instead of using nlapiLogExecution to each of these fields. This will help you eliminate coding multiple nlapiLogExecution just to monitor the values in your variables. Let say you're trying to monitor values for all the fields of a record; it will need you to code multiple nlapiLogExecution calls for that. By using the Watches tab from the Netsuite debugger, you'll eliminate that dilemma.
Sample screenhot:
Share great information about your blog , Blog really helpful for us . We read your blog , share most useful information in blog . Thanks for share your blog here . First Copy Watches Bangalore
ReplyDelete