HTTP
Frends templates for HTTP. HTTP is a communication protocol between web browsers and servers for transmitting data.
This template process retrieves product data from Adobe Commerce / Magento and either inserts or updates each product in Zoho CRM.
This template assumes that the following prerequisites are in place:
ZohoCRM.modules.products.READ
, ZohoCRM.modules.products.CREATE
and ZohoCRM.modules.products.UPDATE
.Before retrieving the Magento product data, an access token used for authorizing the request is obtained from the Magento API.
Accessing the Zoho CRM API also requires an access token, which is obtained with a refresh token provided in the process variables. To generate a refresh token, you can use the corresponding "Zoho CRM - Exchange grant token for refresh token" template. The refresh token does not have an expiration time, so it can be used multiple times.
Zoho CRM has separate API domains for different geographical areas, and requests need to be sent to the same domain as the instance. The domain URLs can be set in the process variables.
Each product is either inserted or updated in Zoho CRM, depending on whether a product with a matching product code is found. When inserted in Zoho CRM, the product code is set with the prefix "MAG", followed with the product's Magento ID.
In this template, Zoho products are created with a minimum set of required attributes. You can adjust the attribute mapping in the settings of the insert and update tasks.
This template does not handle transient errors separately. Each request to Magento and Zoho CRM is checked for errors. If uploading an individual product fails, the process moves on to the next one, and an error notification specifying the Magento product ID is added to the result message.
MagentoBaseUrl | The base URL for the Magento instance. |
MagentoUser | The username for Magento. |
MagentoPassword 🗝 | The password for the Magento user. |
ZohoClientId | The client ID for Zoho CRM. |
ZohoClientSecret 🗝 | The client secret for Zoho CRM. |
ZohoApiUrl | The regional domain for accessing the Zoho CRM API. |
ZohoAccountsUrl | The regional account domain for the Zoho CRM. |
ZohoRefreshToken 🗝 | The token used for generating a new access token for authorizing Zoho CRM API requests. |