Rush Frisby
Rush Frisby

Reputation: 11454

Return NetSuite "tranid" When Adding a Sales Order

Using the NetSuite web service I am creating a sales order. The result that comes back only contains the internalId for the sales order. The email that goes to the customer shows the tranid however (shown as the "Order Number"). Is there a way to return the tranid when creating the sales order so that I don't have to make a second API call to get the order details?

Upvotes: 0

Views: 730

Answers (1)

bknights
bknights

Reputation: 15412

No.

simplest thing is to:

var id = nlapiSubmitRecord(soRec);
var tranId = nlapiLookupField('salesorder', id, 'tranid');

Upvotes: 2

Related Questions