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' settings on the NAV side:
  •  Open the NAV client.
  •  Select the 'Sana Commerce Live' navigation menu item on the left.
  •  Click 'Setup' and open the 'Options' window.
  •  Select the 'Import/Export' tab.


    'Import/Export' Tab on the 'Options' Window

  •  Fill in all the fields in the 'Order Import' section. The data from these fields is used to create the 'payment cost' and 'shipping cost' sales lines for an imported order:
    Shipping Cost Type: specifies the type of the sales line representing the 'Shipping Cost'.
    Shipping Cost No: is 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: is 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:
  •  Open the backoffice web.config file.
  •  Locate the 'sanaCommerce' configuration section.
  •  Locate the 'tasks' subsection:
       <task name="OrderExport"
           type="Sana.Commerce.Tasks.OrderExport.OrderExportTask, Sana.Commerce.Tasks.OrderExport"
           time="4:00am"
           enabled="false"
           sourceWebsiteCode = "B2xSql"
           destinationOrderProviderId = "NavisionStandardOrderProvider"
           destinationCustomerProviderId = "NavisionStandardCustomerProvider"
           batchSize="100"/
    >
  •  Check the following configuration nodes and change them if needed:
    time: the daily time when the order export task should be performed.
    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.
All configuration nodes are required parameters and should be filled in to prevent any problems.
ConfigurationOrder Export