RE: Sales Order – Suitescript to get attached contacts of salesorder

I have attached  3 contacts to a Sales Order from UI.  There is Contacts sub list under Relationships tab. I have selected contact from Contact List, attached the contact with sales order by clicking Attach button.  I want to retrieve the first name, last name phone of the first contact of the sales order using suitescript.

RE: Sales Order  - Suitescript to get attached contacts of salesorder

Any help would be appreciated.

piyam Rookie Asked on March 1, 2021 in SuiteScript.
Add Comment
2 Answers

And to use it in the script:

const savedSearch = search.load({id: <savedSearchId>});
savedSearch.filters.push(search.createFilter({name: 'internalid', operator: search.Operator.ANYOF, values: <salesOrderId>, join: 'transaction'}));
Rookie Answered on April 23, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.