Skip to content

Updating Purchase Orders in Inventory Planner

This task will update existing purchase orders in Inventory Planner, from an XML file. For instance, you can change the status and received quantities.

Settings

Enapps Connection

Required
The Inventory Planner connection to use. See the Connecting to Inventory Planner article if you require more information on how to create/manage connections.

Fail File

Required
The name of the file to write failed records to. The data will be output in the same XML format as the Input File. A sample can be found below.

Input File

Required
The name of the file containing the data you want to import into Inventory Planner. The data must be in XML format, a sample of which is shown below.

Success File

Required
The name of the file to write successfully imported records to. The data will be output in the same XML format as the Input File. A sample can be found below.

Prevent Reprocessing

Required
Set to 'True' to prevent the same record being processed more than once. This works based on the value of the ExternalId element provided within the Input File.

Timeout

Optional
The length of time to wait for responses from the Inventory Planner API. If not specified, the timeout will default to 100 seconds.

Zynk Settings

See Common Task Settings

Examples

The example XML below shows how to update the status, billing address and received quantities on a purchase order. The XML format is the same as the Export Purchase Orders task.

Purchase orders can be matched by Id or Reference. Purchase order items can be matched by Id, Sku or Barcode.

<?xml version="1.0" encoding="utf-8"?>
<PurchaseOrders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <PurchaseOrder>
    <Id>6984b0943fdaf7f315059f36</Id>
    <BillingAddress>Zynk Software Ltd
6-8 Charlotte Square
Newcastle
Tyne &amp; Wear
NE1 4XF</BillingAddress>
    <Items>
      <Item>
        <Id>c47323_vid_CA/BASE/SNG/BEECH</Id>
        <Barcode>000_CA/BASE/SNG/BEECH</Barcode>
        <Received>1</Received>
        <Sku>CA/BASE/SNG/BEECH</Sku>
      </Item>
      <Item>
        <Received>1</Received>
        <Sku>TEST0001</Sku>
      </Item>
    </Items>
    <Reference>3</Reference>
    <Status>open</Status>
  </PurchaseOrder>
</PurchaseOrders>