Scenario
Update the customer’s phone number and memo field in the sales order in a single request asynchronously
Request
<soapenv:Envelope
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:platformCore='urn:core_2021_2.platform.webservices.netsuite.com'
xmlns:listRel='urn:relationships_2021_2.lists.webservices.netsuite.com'
xmlns:listAcct='urn:accounting_2021_2.lists.webservices.netsuite.com'
xmlns:platformMsgs='urn:messages_2021_2.platform.webservices.netsuite.com'>
<soapenv:Header>
<tokenPassport xsi:type='platformCore:TokenPassport'>
<account xsi:type='xsd:string'>{{accountId}}</account>
<consumerKey xsi:type='xsd:string'>{{consumerKey}}</consumerKey>
<token xsi:type='xsd:string'>{{tokenId}}</token>
<nonce xsi:type='xsd:string'>{{nonce}}</nonce>
<timestamp xsi:type='xsd:long'>{{timestamp}}</timestamp>
<signature algorithm='HMAC_SHA256' xsi:type='platformCore:TokenPassportSignature'>{{signature}}</signature>
</tokenPassport>
</soapenv:Header>
<soapenv:Body>
<asyncUpdateList xsi:type='platformMsgs:AsyncUpdateListRequest'>
<record xsi:type='tranSales:SalesOrder' internalId='1'>
<memo xsi:type='xsd:string'>Sales order is updated.</memo>
</record>
<record xsi:type='listRel:Customer' internalId='24'>
<phone xsi:type='xsd:string'>8921576269</phone>
</record>
</asyncUpdateList>
</soapenv:Body>
</soapenv:Envelope>
Response
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<asyncUpdateListResponse
xmlns="">
<platformCore:asyncStatusResult
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
<platformCore:jobId>ASYNCWEBSERVICES_TSTDRV2782962_080620238260524931565113024_d</platformCore:jobId>
<platformCore:status>pending</platformCore:status>
<platformCore:percentCompleted>0.0</platformCore:percentCompleted>
<platformCore:estRemainingDuration>0.0</platformCore:estRemainingDuration>
</platformCore:asyncStatusResult>
</asyncUpdateListResponse>
</soapenv:Body>
</soapenv:Envelope>
getAsyncResult
Request
<soapenv:Envelope
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:platformCore='urn:core_2021_2.platform.webservices.netsuite.com'
xmlns:platformMsgs='urn:messages_2021_2.platform.webservices.netsuite.com'>
<soapenv:Header>
<tokenPassport xsi:type='platformCore:TokenPassport'>
<account xsi:type='xsd:string'>TSTDRV2782962</account>
<consumerKey xsi:type='xsd:string'>997251c8550a1b255c2e5044d4ecfae0edbd6fecba45fa629757929c94479bf7</consumerKey>
<token xsi:type='xsd:string'>ab6f353bc3c5a85244d6e962b58050bbaf73881d32b801a7b21ec11868657339</token>
<nonce xsi:type='xsd:string'>MTY5MTM5MDk2MQ</nonce>
<timestamp xsi:type='xsd:long'>1691390961</timestamp>
<signature algorithm='HMAC_SHA256' xsi:type='platformCore:TokenPassportSignature'>2NxH0qBon1ArquLvXpwn00QTo4nz19/lwY3Tje4sJ7g=</signature>
</tokenPassport>
</soapenv:Header>
<soapenv:Body>
<getAsyncResult xsi:type='platformMsgs:GetAsyncResultRequest'>
<jobId xsi:type='xsd:string'>ASYNCWEBSERVICES_TSTDRV2782962_080620238260524931565113024_d</jobId>
<pageIndex xsi:type='xsd:int'>1</pageIndex>
</getAsyncResult>
</soapenv:Body>
</soapenv:Envelope>
Response
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<platformMsgs:documentInfo
xmlns:platformMsgs="urn:messages_2021_2.platform.webservices.netsuite.com">
<platformMsgs:nsId>ASYNCWEBSERVICES_TSTDRV2782962_080620238260524931565113024_d</platformMsgs:nsId>
</platformMsgs:documentInfo>
</soapenv:Header>
<soapenv:Body>
<getAsyncResultResponse
xmlns="">
<platformMsgs:asyncResult xsi:type="AsyncUpdateListResult"
xmlns:platformMsgs="urn:messages_2021_2.platform.webservices.netsuite.com">
<platformMsgs:writeResponseList>
<platformMsgs:writeResponse>
<platformCore:status isSuccess="true"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
<platformCore:statusDetail>
<platformCore:afterSubmitFailed>false</platformCore:afterSubmitFailed>
</platformCore:statusDetail>
</platformCore:status>
<platformMsgs:baseRef internalId="1" type="salesOrder" xsi:type="platformCore:RecordRef"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com"/>
</platformMsgs:writeResponse>
<platformMsgs:writeResponse>
<platformCore:status isSuccess="true"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
<platformCore:statusDetail>
<platformCore:afterSubmitFailed>false</platformCore:afterSubmitFailed>
</platformCore:statusDetail>
</platformCore:status>
<platformMsgs:baseRef internalId="24" type="customer" xsi:type="platformCore:RecordRef"
xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com"/>
</platformMsgs:writeResponse>
</platformMsgs:writeResponseList>
</platformMsgs:asyncResult>
</getAsyncResultResponse>
</soapenv:Body>
</soapenv:Envelope>