Add-ons and ModulesOrder Export

Order Export

Sana Commerce 8.2
Your provider

Configure Order Export for NAV

Prepare Dynamics NAV to receive orders

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

Step 1: In Microsoft Dynamics NAV click: Departments -> Webshop -> Lists -> Webshops.

Step 2: Open the webshop card:


Webshop Card

Step 3: Fill in the data of the 'Online Payment' and 'Online Shipment' sections. 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 Type Specifies the type of the sales line representing the 'Shipping Cost'.
Shipping Cost No. The object identifier for the sales line of the type selected for the 'Shipping Cost Type' option. For example an Id of a G/L Account when that type is selected.
Payment Cost Type Specifies the type of the sales line representing the 'Payment Cost'.
Payment Cost No. The object identifier for the sales line of the type selected for the 'Payment Cost Type'. For example an Id of a G/L Account when that type is selected.
 
Configure the order export task

The order export functionality uses the Sana Commerce task scheduler. You can read more about it in this chapter.
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.OrderExport"
       time="4:00am"
       enabled="false"
       sourceWebsiteCode = "B2xSql"
       destinationOrderProviderId = "NavisionStandardOrderProvider"
       destinationCustomerProviderId = "NavisionStandardCustomerProvider"
       batchSize="100"
    allowManualStart="true"
    sortNumber="6"/>

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

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 'Sana Commerce - Sites' configuration section of the web.config;
destinationOrderProviderId: Identifier of the Order provider, which is selected from the 'Sana Commerce - Modules' configuration section of the 'web.config' file;
destinationCustomerProviderId: Identifier of the Customer provider, which is selected from the 'Sana Commerce - Modules' configuration section of the web.config;
batchSize: the quantity of orders which are handled in one batch;
allowManualStart: this parameter is 'true' by default and it specifies that the task can be started manually in the backoffice;
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 to prevent any problems.
Add-ons and ModulesOrder Export