Table of Contents

CreateOrderAndCustomer Procedure

Codeunit WS Sales Document API

Creates a Sales Order and a new Customer.

Signature

CreateOrderAndCustomer(SystemId: Text; SystemReferenceId: Text; SalesOrder: XmlPort "QWESR WS Sales Order Import"; SellToCustomer: XmlPort "QWESR WS Customer Import"; var CustomerNo: Code[20]; var OrderNo: Code[20])

Parameters

SystemId Text

The code of the External System. This External System must be configured in BC.

SystemReferenceId Text

A unique external Id that identifies this order in the External System.

SalesOrder XmlPort "QWESR WS Sales Order Import"

The data that is needed to create the Sales Order.

SellToCustomer XmlPort "QWESR WS Customer Import"

The data that is needed to create the customer.

var CustomerNo Code[20]

The Customer of the created customer.

var OrderNo Code[20]

The Document No. of the created document.

This documentation is generated from Spider v27.2