Monitoring and queueing
Commerce 365 brings you real-time integration between Business Central and Magento. In order to accomplish this, the extension comes with an integration mechanism that runs in the background. Highly simplified this mechanism monitors all relevant changes in your database. This can be a direct change of an item description, but also the creation of a new sales or purchase order that might influence the available inventory. Anything that might lead to an update of the Magento webstore is first queued and then processed by the integration mechanism.
If you want to see what the integration mechanism is doing just go to Integration Log. Here you’ll find a list of every synchronization task that was executed, including the data object (click on the Entry No. to view that data). If the list is empty, go to Administration Setup to enable logging.
In manual sync mode (see below) this list shows exactly what has happened and therefore got queued. To synchronize the data just click on the Synchronize Queue button. The system will then process the whole queue. You can also activate a job queue task which will automatically take care of all synchronization work.
Sometimes there are reasons why a record cannot be synchronised. By default the system will retry to synchronize 5 times. This is to prevent immediate hiccups when for example your Magento system was rebooted and therefore was not accessible for a minute or two. But after 5 times, these records are moved to the Errors list. Here you can see the error message, and you can click on Show Details to jump directly to the details page for a specific record. Correct the problem, close the page, and click on Retry to move any selected record(s) back in to the queue.
After you have to enabled logging on the general setup page, you will find all the details on what the integration mechanism is doing in this list. Click on the Entry No. to see the full details on what was sent.
Manual or automatic mode
Synchronizing data in Commerce 365 can be done either manually or automatically. During the initial setup, implementation or testing phase, you might want to run in manual mode, because it allows you to exactly see what the system is doing, or to process one or more specific records. In a later stage, you probably want to switch to automatic mode. To do this, go to the Business Central job Queue Entries, and set all Commerce365 code units to run on a recurring basis (scheduled), and set their status to Ready.
If you want to switch to manual mode again, set these job queue entries to On Hold.