Magento sales orders always first become staging orders (see previous chapter). This is an in-between table in which we store all the sales order information that is available on the Magento side. And then, either manually or fully automatically, these staging orders can become real Business Central sales documents.
Orders or Quotes
On a Store View level you can set whether orders have to be imported, and which type of sales document should be created. This can either be a Sales order or a Sales Quote. This settings are configured on the store view card as shown below.
In order to process orders directly after importing the order processing method can be configured. There are 3 methods of processing sales orders or sales quotes after importing the order from Magento.
None | Does not create a Business Central sales order, the staging order remains in the staging order list which can be accessed by navigating to Sales > Staging orders. |
Create | Converts the staging order in a Business Central sales order |
Create & Release | Converts the staging order in a Business Central sales order and sets the status on release. |
Switching to Auto-Mode
If you are running a production environment you don't want to manually import orders every day by clicking the "Get New Orders" button. For this reason we created a job queue which does this work for you.
By navigating to Integration > Queue > Job Queue Details you will see a list of Commerce 365 job queues which automate various processes. Select job queue "NC365 Get Sales Orders" and click open the job queue card.
This will open the job queue card below which allows you to schedule the job queue and make some configurations.
We recommend to let the job queue run as often and long as possible, the configuration can be customized any time. When you are ready, click the "Restart" button in the header which will activate the job queue. Based on the configuration on your store view card (explained in previous section) your orders are now imported, imported and created or imported, created and released.
Number Series
The so-called Increment ID that is generated by Magento will be used as the order number in Business Central. The Increment ID is the visible order number, and not the technical ID. This means, the number your customer sees in Magento, is also the order number that is used within BC.
However if you would like to use a different number series this is also possible. Navigate to Administration > Setup > No. Series and select your preferred number series in the field.
All new staging orders that are processed will get an order number from the selected number series.