You can create custom adapters so that you can map it with your properties before distributing to different stakeholders.
To create a new adapter:
Click the NETWORK tab.
Click Adapters.
Click the Custom Adapters tab.
Click Create Adapter.
Enter adapter name.
Enter adapter description.
Click Create Adapter.
On the Property Mapping tab, in the list, select the properties for the adapter one-by-one. The Adapter Properties column and Map to your properties column appears.
If you want to map the adapter property directly to your property, do the following:
For the adapter property you want to map, click Direct Property.
In the Map to list, click to map the corresponding property. Apart from the direct mapping, you can write Python script and transform data using multiple property values for a adapter property.
For example, you can use the script to combine values of properties “Color” and “Fit” for the adapter property “Designer Style”. You can also the validate their script as and when you make changes to the script. Note: This is applicable for both System Adapters and Custom Adapters.
If you want to write a script to perform data transformation, do the following:
For the custom adapter property you want to map, click Edit Script.
Click Code View.
Enter the code.
If you want to preview the output of your code, click Preview Output.
Click Save.
If you want to use the standard data transformation operations, do the following:
For the custom adapter property you want to map, click Edit Script.
Click Tool View.
The Property list displays all the available product properties.
If you want to view the sample values of a property, click Show sample values.
The sample values appears on the right side of the window. If you want to view sample values for other properties from here, select another property, and then click .
In the Select Operation list, select an operation for the data transformation. The standard operations available are:
Standard Operations
Sample Scenario
Replace
Replace all occurrences of “Crimson” for the property “Color” with “Red”
Join
Join two properties “ Brand” and “Product Name” using the joining value “-”
Prefix
Prefix (add something at the beginning) US currency “$” for the property “Price”
Suffix
Suffix (add something at the end) registered trademark to the values of the property “Product Name”
Split & pick
Split the property “Image URL” and pick the second part of the “image URL”
Addition
Add two numerical property values for properties “ Base Price” and “Delivery Charges”. That is,
Actual price = Base price + Delivery charges
Subtraction
Subtract two numerical property values for properties “ Actual Price” and “Discounted Price”. That is, Offer Price= Actual Price- Discount Price
Multiplication
Multiply two numerical property values for properties “Number of Units” and “Price per Unit”. That is, Total Price = “Number of Units” * “Price per Unit”
Division
Divide two numerical property values for properties “Total Weight of the Products” and “Total Weight of the Carton”. That is, Per Unit Weight = Total Weight of the Products / Total Weight of the Carton
Percentage
Get % portion of a particular property value. That is,
Offer Price= 80% of Actual Price
If you want to combine another operation with the previous operation, click Add another operation.
If you want to copy the code, click Copy Code.
If you want to preview the output of your code, click Preview Output.
Click Save.
If you do not want to map the adapter property your PIM property, select the Mark for Removal checkbox.
To change the name of the adapter property, click .
Click Save Mappings.
If you want to change the adapter name and description, do the following: