The Magento connector supports the integration of User Defined Fields (UDFs) between the Magento and SAP Business One applications, allowing businesses to map and synchronize custom data fields between Magento and SAP Business One. This functionality enables users to seamlessly link UDFs that share the same length, data type, and structure across both applications, ensuring a smooth and efficient data exchange.
The Magento connector supports the integration of User Defined Fields (UDFs) on the Products object.
To perform the UDF Integration, follow these steps:
1. Open the UDF Integration window by navigating to Administration → Integration Hub → UDF Integration.
2. The UDF Integration-Selection Criteria window will appear.
3. The active template for the Magento connector will automatically be displayed in the Template Name field.
4. Select the specific object you want to map UDFs for in the Object Type field.
5. Click OK to open the UDF Integration Mapping screen.
6. Click the Retrieve Custom Fields button to fetch the list of Magento custom fields.
7. In the left column titled SAP User Defined Fields (UDF), select the SAP UDFs. In the Mapped to Shopify Custom Fields column, select the corresponding Magento custom fields (Attributes).
8. In the Data Type column, choose the data type for the Magento custom fields.
9. Click the Add/Update button to save the data.
The following Magento data types for custom fields (Attributes) are supported for the UDF integration with SAP Business One:
|
Magento Attribute Type |
SAP B1 UDF Type |
|
Text |
Alphanumeric |
|
Textarea |
Alphanumeric |
|
Price |
Price |
|
Select |
Valid Values |
|
Boolean |
Checkbox |
Note
1.
The user needs to ensure that they have mapped the correct UDFs with the same
data type, length, and structure between the applications.
2. In
case you do not want to integrate UDF information between the applications, you
may delete the relevant row. Once the row is deleted, the UDF information will
no longer be integrated during the initialization and synchronization
process.
3. The internal ID of the valid value for the Select attribute in Magento must precisely match the valid value in SAP Business One.
The SAP Business One UDFs with "Linked to Entities" Validation will not appear in the column SAP User Defined Fields (UDF).
To retrieve the values from the ‘Postman’ application by using the ‘API’ below.
1. Attribute Values in SAP Business One:
2. Retrieving Attribute Values Using Postman and Magento API:
To retrieve these attribute values via an API call, you use the Magento REST API. Here’s a breakdown of the provided API request:
GET http://<Host>/rest/default/V1/products/attributes?searchCriteria[filterGroups][0][filters][0][field]=is_user_defined&searchCriteria[filterGroups][0][filters][0][value]=1&searchCriteria[pageSize]=250&searchCriteria[filterGroups][1][filters][0][field]=frontend_input&searchCriteria[filterGroups][1][filters][0][value]=select&searchCriteria[filterGroups][1][filters][0][conditionType]=in HTTP/1.1
Host: <Host>
Authorization: Bearer <Access Token>
Explanation of the Parameters:
Authentication:
For more information on
product attributes documentation, please refer to the following URL:
https://adobe-commerce.redoc.ly/2.4.7-admin/tag/productsattributes