ConfigurationOrder Export

Order Export

Configure Order Export

Prepare Dynamics NAV to receive orders

Before the order export process can be performed, you should configure the order import on the NAV side:
  •  Open the NAV client;
  •  Select the 'Departments -> Webshop' navigation menu item on the left;
  •  Open the 'Webshop Card' window;
  •  Select the 'Import/Export' tab;


    The 'Import/Export' Tab on the 'Webshop Card' Window

  • Fill in all the fields in the 'Import/Export' tab. The data from these fields is used to create the 'payment cost' and 'shipping cost' sales lines for an imported order:
    Import Shipping Cost Type: specifies the type of the sales line representing the 'Shipping Cost'.
    Import Shipping Cost No: is the object identifier for the sales line of the type selected for the 'Import Shipping Cost Type' option. For example an Id of a G/L Account when that type is selected.
    Import Payment Cost Type: specifies the type of the sales line representing the 'Payment Cost'.
    Import Payment Cost No: is the object identifier for the sales line of the type selected for the 'Import 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:
  • Open the backoffice web.config file;
  • Locate the 'SanaCommerce' configuration section;
  • 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"/>
  • 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.
ConfigurationOrder Export