Mayesh Nadesan
02/25/2025, 12:27 PMCeligo AI
02/25/2025, 12:27 PMAI generated answer (using internal Slack threads):To get a serialized inventory item custom field value using
record.load
in SuiteScript, you would first load the record, then use the getValue
method to retrieve the value of the custom field. Here's a basic example:
javascript
var itemRecord = record.load({
type: record.Type.SERIALIZED_INVENTORY_ITEM,
id: itemId,
isDynamic: false,
});
var customFieldValue = itemRecord.getValue({
fieldId: 'custitem_your_custom_field_id'
});
In this example, replace 'custitem_your_custom_field_id'
with the ID of your custom field.
Please note that if the custom field is on a sublist or subrecord, you would need to navigate to that sublist or subrecord first before you can access the custom field. For example, if the custom field is on the inventory detail subrecord, you might need to use getSublistSubrecord
method to access it.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/25/2025, 12:27 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802104294
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800344169
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800140083
Celigo AI
02/25/2025, 12:27 PM