Add new comment

After a little more digging, and searching through the SuiteAnswer I was able to create an ItemFulfillment record (as shown on sample code below). However, the UPS tracking number inserted is not the one I added. Perhaps, transforming ItemFulfillment automatically create a tracking number??

var filters = new Array();
filters[0] = new nlobjSearchFilter('tranId', null, 'is', '123');
var searchresults = nlapiSearchRecord( 'salesorder', null, filters, null );
if (searchresults != null && searchresults != '') {
    var orderId = searchresults[0].getId();
    var iff = nlapiTransformRecord('salesorder', orderId, 'itemfulfillment');
    iff.setLineItemValue('package','packagetrackingnumber',1,'1Z0000000000000000');
    nlapiSubmitRecord(iff, true);
}
By aladar

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.