Add-ons and ModulesOrder Export

Order Export

Sana Commerce 8.3
Your provider

Configure Order Export for AX

Prepare Microsoft Dynamics AX to receive the orders:

Before the order export process can be performed, you should configure the order import on the Microsoft Dynamics AX side:

Step 1: In Microsoft Dynamics AX click: Webshop -> Common -> Webshops.

Step 2: Select the webshop in the 'Webshops' form and switch to the 'Overview' tab:


The 'Webshops' Form

Step 3: Fill in the fields of the 'Ledger account' section. The data from these fields is used to create the 'payment cost' and 'shipping cost' sales lines for an imported order:

Field Description
Shipping cost account Ledger account which is used in miscellaneous charge as credit account for shipping cost.
Payment cost account Ledger account which is used in miscellaneous charge as credit account for payment cost.


Configure the Order Export Task

The order export functionality uses the Sana Commerce task scheduler. The configuration of the 'Order Export' task is performed in the 'sanaCommerce' configuration section of the backoffice 'web.config' file.

To configure the 'Order Export' task:

Step 1: Open the backoffice 'web.config' file.

Step 2: Locate the 'sanaCommerce' configuration section.

Step 3: Locate the 'tasks' subsection:

<task name="OrderExport" 
      title="Order export"
      type="Sana.Commerce.Tasks.OrderExport.OrderExportTask, Sana.Commerce.Tasks.Interfaces"
      time="4:00am"
      enabled="false"
      sourceWebsiteCode="B2xSql"
      destinationOrderProviderId="AXOrderProvider"
      destinationCustomerProviderId="AXCustomerProvider"
      batchSize="10"
      allowManualStart="true"
      sortNumber="2"/>

Step 4: Check the following configuration nodes and change their values if needed:

Configuration nodes Description
time/interval The daily time or period (in seconds) when the 'Order Export' task should be performed. For more information please read this chapter.
sourceWebsiteCode The webshop from which the order export will be performed. It is selected from the <sanaCommerce> configuration section, <sites> subsection of the 'web.config' file.
destinationOrderProviderId The identifier of the Order provider, which is selected from the <sanaCommerce> configuration section, <modules> subsection of the 'web.config' file.
destinationCustomerProviderId The identifier of the Customer provider, which is selected from the <sanaCommerce> configuration section, <modules> subsection of the 'web.config' file.
batchSize The quantity of orders which are handled in one batch.
allowManualStart The parameter which specifies that the task can be started manually in the backoffice.
Default value: 'true'
sortNumber The sort order in which the scheduled tasks are arranged in the backoffice.


All configuration nodes are required parameters and should be filled in.
Add-ons and ModulesOrder Export