Saturday, January 5, 2019

Setting serial numbers on Inventory Adjustment records via Web Services with the Advanced Bin/Numbered Inventory Management feature enabled

The following SOAP request illustrates how to set serial numbers onInventory Adjustment records via Web Services on accounts with the AdvancedBin/Numbered Inventory Management feature enabled:

 <soapenv:Body>
     <platformMsgs:upsertList
         xmlns:platformMsgs="urn:messages_2012_2.platform.webservices.netsuite.com"
         xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:platformCommon="urn:common_2012_2.platform.webservices.netsuite.com"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:platformCore="urn:core_2012_2.platform.webservices.netsuite.com"
         xmlns:s0="urn:inventory_2012_2.transactions.webservices.netsuite.com"
         xmlns:s1="urn:purchases_2012_2.transactions.webservices.netsuite.com">
         <platformMsgs:recordxsi:type="s0:InventoryAdjustment" externalId="1004.0">
            <s0:postingPeriodinternalId="16" />
            <s0:tranDate>2012-11-06T07:03:06.000Z</s0:tranDate>
            <s0:subsidiaryinternalId="5" />
            <s0:accountinternalId="58" />
            <s0:inventoryList>
              <s0:inventory>
                 <s0:item internalId="548" />
                 <s0:inventoryDetail>
                    <platformCommon:inventoryAssignmentList>
                       <platformCommon:inventoryAssignment>
                          <platformCommon:issueInventoryNumber internalId="56" />
                          <platformCommon:binNumber>
                             <platformCore:name>EUROFA</platformCore:name>
                          </platformCommon:binNumber>
                          <platformCommon:quantity>-100000.0</platformCommon:quantity>
                          <platformCommon:expirationDate>2012-11-02T00:00:00</platformCommon:expirationDate>
                       </platformCommon:inventoryAssignment>
                    </platformCommon:inventoryAssignmentList>
                 </s0:inventoryDetail>
                 <s0:location internalId="5" />
                 <s0:adjustQtyBy>-100000.0</s0:adjustQtyBy>
                 <s0:binNumbers>EUROFA</s0:binNumbers>
              </s0:inventory>
            </s0:inventoryList>
            <s0:customFieldList>
              <platformCore:customFieldxsi:type="platformCore:SelectCustomFieldRef"internalId="custbody_merck_srarootcause">
                 <platformCore:value internalId="2" />
              </platformCore:customField>
            </s0:customFieldList>
         </platformMsgs:record>
      </platformMsgs:upsertList>

   </soapenv:Body>

No comments:

Post a Comment