Sunday, May 5, 2019

Retrieve Internal ID of the Time Tracking record from the Billable Time sublist of Invoice

The Internal ID of the Time Tracking record from the Billable Time sublist of an Invoice can be obtained through scripting from the doc field:

  var currentRec = nlapiLoadRecord('invoice',23433);  lines = currentRec.getLineItemCount('time');   for ( var i=1 ; i<=lines ; i++ )  {   //get the ID of the Time Tracking records   var timeRecId = currentRec.getLineItemValue('time', 'doc', i);  }

Complete list of Fields in the Billable Time Sublist of the Invoice can be found in Record Browser.


No comments:

Post a Comment