Adam Weaver
09/04/2024, 6:15 PMCeligo AI
09/04/2024, 6:15 PMAI generated answer (using internal Slack threads):Yes, it is possible to have different mappings for each NetSuite item type. You can achieve this by using SuiteScript, NetSuite's JavaScript-based API. For example, if the item is a standard inventory item, you can use the standard fields for price and quantity (like
quantityAvailablejavascript
var itemType = record.getType();
var quantity;
if (itemType === record.Type.INVENTORY_ITEM) {
    quantity = record.getValue('quantityavailable');
} else if (itemType === record.Type.ASSEMBLY_ITEM) {
    quantity = record.getValue('custitem_custom_quantity_field');
}recordcustitem_custom_quantity_fieldCeligo AI
09/04/2024, 6:15 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837490797
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832092822
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831859767
Celigo AI
09/04/2024, 6:15 PM