HTTP
Frends templates for HTTP. HTTP is a communication protocol between web browsers and servers for transmitting data.
This template process retrieves orders from Magento and inserts them into Dynamics365.
Using this template, you can synchronize orders from Magento to Dynamics365.
This template assumes that the following prerequisites are in place:
This template first fetches all orders from Magento. Because existing orders are not updated by this template, the orders fetched from Magento are then compared to the existing orders in Dynamics365. Whether an order already exists is checked by comparing the IDs of the orders to be inserted to the existing orders.
To insert orders into Dynamics365, a unit of measurement has to be defined for the products in the orders. By default, this process uses a unit of measurement called "Primary Unit", but this behavior can be changed to another unit in the corresponding task. In any case, the desired unit of measurement, be it the default Primary Unit or another one, has to exist in Dynamics365.
The products in the orders to be inserted must also be in a Price List on Dynamics365, to correctly determine their price. This template assumes that the products are already in a price list. If the produts have been imported from Magento to Dynamics365 using the corresponding template, the products should already be in a price list called "Magento Price List".
The orders inserted into Dynamics365 using this template have an ID starting with "MAG" (as in Magento) followed by their ID from Magento, e.g., "MAG11". Similarly, the names of the imported orders begin with "Magento order" followed by their ID from Magento, e.g., "Magento Order 10".
Process variables include fields for both Magento and Dynamics365 credentials and the addresses of the instances.
There are error checks after each task where information is retrieved or sent. If a task is not successful, an error message will be appended to an exception variable and displayed at the end of the process. If an error occurs when trying to insert an order, the process will move on to the next order. If inserting a single line into an order fails, the process will first delete the created order and then move on to the next one, to avoid orders with only partial information being inserted.
Transient errors are not handled in this template, but if they are expected, retries for e.g., getting the order information from Magento can be configured in the corresponding tasks.
Dynamics365ClientId | The client ID for Dynamics365. |
Dynamics365TenantId | The tenant ID for Dynamics365. |
Dynamics365ClientSecret 🗝 | The client secret for Dynamics365. |
Dynamics365Url | The URL to for Dynamics365 instance. |
MagentoBaseUrl | The base URL for Magento. |
MagentoUser | The username for Magento. |
MagentoPassword 🗝 | The password for your Magento user. |