Version: eXtendAlphaBroder 1.0.2.20
Audience: Administrator, Developer
Problem
During item constitution in eXtendAlphaBroder, you may encounter an error message about duplicate or multiple color values. This happens when the color list in your account contains duplicate entries, causing confusion during automation.
Solutions
You can solve this issue in two ways:
- Clean up your color list: Go through your color list and check for duplicate entries. You can either mark these duplicates as inactive or delete them entirely if they are not in use.
- Create a function: If you can't inactivate or delete the duplicates, consider creating a function in the suite_alpha_transformers.js file. This function should handle the mapping of color values.
Creating a function
Here are the available arguments for creating this function:
/*** @param {Object} args* @prop {String} args.color* @prop {String} args.colorListId* @prop {Array} args.colorMapRegExp* @prop {Object} args.sourceNativeRecord*/
The function to be created should be named getNsColorValue()
. This function should return a JSON object, which includes the properties colorId
and abbreviation
.
colorId
: This refers to the NetSuite color list id.abbreviation
: This is used to update the sub-matrix item template.