Wednesday, January 23, 2019

Partial Item Receipt that is linked on Purchase Order via upsertList

Below is a sample SOAP request that could serve as aguide when trying to do partial item receipt, linked to the purchaseorder using upsertList.

It is important that the orderline is included onthe request or else an error stating "Adding new line to sublist item isnot allowed." will be thrown.

<soapenv:Body>
 <platformMsgs:upsertListxmlns:platformCore="urn:core_2012_2.platform.webservices.netsuite.com"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:s0="urn:purchases_2012_2.transactions.webservices.netsuite.com"xmlns:platformMsgs="urn:messages_2012_2.platform.webservices.netsuite.com"xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <platformMsgs:recordexternalId="irv3" xsi:type="s0:ItemReceipt">
 <s0:createdFromexternalId="pov1" />
 <s0:itemList>
   <s0:item>
     <s0:orderLine>1</s0:orderLine>
     <s0:locationinternalId="1" />
     <s0:quantity>1.0</s0:quantity>
  </s0:item>
 </s0:itemList>
 </platformMsgs:record>
 </platformMsgs:upsertList>
</soapenv:Body>

No comments:

Post a Comment