MarcomOrderSample

This sample property mapping object is included with the MarcomCentral Connect feature. This sample object works with the sample MarcomCentral order file, referenced by the CreateOrdersFromFile step in the MarcomProcessOrders workflow.

MarcomOrderSample is used by the CreateOrdersFromFile step in the MarcomProcessOrders workflow to create an order and two jobs.

Order property mapping objects have properties that specify which sample XML file they use and what time format is found in the sample XML file. The default values for this property mapping are:

  • Sample order XML file: order.xml
  • Time format: MM/dd/yyyy HH:mm:ss ZZZZ

Order property mappings include a list of XML elements (or XPaths) that identify orders and jobs in the sample file. The order and job identifiers defined in this sample are:

Order identifiers
/Order
Job identifiers
/Order/OrderDetails/OrderDetail

Finally, order property mappings also include a list of XML elements and the objects and properties they correspond to. When the CreateOrdersFromFile step runs, the values in the order XML file are copied into appropriate order and job properties. In this sample, these mappings are defined.

XML element (XPath expression) Object type Property
/Order/OrderNumber Order Order name (Order.Name)
/Order/ID Order External order reference (Order.Reference)
/Order/OrderDetails/OrderDetail/User/Name Order Customer name (Order.Customer)
/Order/OrderDetails/OrderDetail/SKUDescription Order Description (Order.Description)
/Order/OrderDetails/OrderDetail/Quantity Job Job copies requested (Job.Copies)
/Order/OrderDetails/OrderDetail/OrderNumber Job MarcomCentral order number (Job.Marcom.OrderNumber
/Order/ID Job MarcomCentral order ID (Job.Marcom.OrderId)
/Order/OrderDetails/OrderDetail/ID Job MarcomCentral job ticket (Job.Marcom.JobTicketId)
/Order/OrderDetails/OrderDetail/ProductType Job MarcomCentral product type (Job.Marcom.ProductType)
/Order/OrderDetails/OrderDetail/ProductName Job Job name (Job.Name)