Table of Contents

WS Sales Document API

Functions to handle sales documents via Web Services.

Deprecated

This object is deprecated and should not be used.

Reason: The SOAP API is deprecated by Microsoft. Use the REST API "salesOrder", "salesInvoice", "salesCreditMemo" instead. This SOAP API will not be removed until really necessary, but it is not actively maintained anymore. Contact SmartApps if there are missing needed functions in the REST API that exists in the SOAP API.
Deprecated since: 22.2

Object Definition

Object TypeCodeunit
Object ID70314107
Object NameQWESR WS Sales Document API

Procedures

Name Description
CreateOrder(Text; Text; XmlPort "QWESR WS Sales Order Import"): Text Creates a Sales Order.
CreateOrderAndCustomer(Text; Text; XmlPort "QWESR WS Sales Order Import"; XmlPort "QWESR WS Customer Import"; Code[20]; Code[20]) Creates a Sales Order and a new Customer.
CreateReturnOrder(Text; Text; XmlPort "QWESR WS S. Ret. Order Import"): Text Creates a Sales Return Order.
DeleteOrder(Text; Text; Code[20]) Deletes a Sales Order.
DeleteReturnOrder(Text; Text; Code[20]) Deletes a Sales Return Order.
GetOrderConfirmation(Text; Text; Code[20]): Text Gets the Order Confirmation report saved as a PDF.
GetReturnOrderConfirmation(Text; Text; Code[20]): Text Gets the Return Order Confirmation report saved as a PDF.
ReleaseOrder(Text; Text; Code[20]) Releases a Sales Order.
ReleaseReturnOrder(Text; Text; Code[20]) Releases a Sales Return Order.

Events

Name Description
OnAfterInsertSalesHeader(Record "Sales Header"; Record "QWESR tWSSalesHeader" temporary; List of [Integer]; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised after the Sales Header is inserted.
OnAfterInsertSalesLine(Record "Sales Line"; Record "QWESR tWSSalesLine" temporary; List of [Integer]; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised after the Sales Line is inserted.
OnBeforeInsertSalesHeader(Record "Sales Header"; Record "QWESR tWSSalesHeader" temporary; List of [Integer]; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised before the Sales Header is inserted.
OnBeforeInsertSalesLine(Record "Sales Line"; Record "QWESR tWSSalesLine" temporary; List of [Integer]; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised before the Sales Line is inserted.
OnBeforeModifySalesHeader(Record "Sales Header"; Record "QWESR tWSSalesHeader" temporary; List of [Integer]; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised before the Sales Header is modified, but after all fields are populated.
OnBeforeModifySalesLine(Record "Sales Line"; Record "QWESR tWSSalesLine" temporary; List of [Integer]; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) Raised before the Sales Line is modified, but after all fields are populated.

This documentation is generated from Spider v27.2