Mark
08/14/2025, 7:24 PMCeligo AI
08/14/2025, 7:24 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To create a custom record with a type: list, you can create a custom item field that references your custom record and make the custom record the parent. This will show up under the custom record. Here is a sample code snippet:
javascript
var customRecord = record.create({
type: 'customrecord_my_custom_record',
isDynamic: true,
});
var sublistId = customRecord.addSublist({
sublistId: 'customsublist',
type: record.SublistType.LIST,
label: 'My Custom Sublist'
});
To fetch an item’s bomrevision, you can use the record.load
method to load the assembly item record and then use the getSublistValue
method to get the value of the 'currentrevision' field from the 'billofmaterials' sublist. Here is a sample code snippet:
javascript
var assy = record.load({type: record.Type.ASSEMBLY_ITEM, id: 4147});
var revision = assy.getSublistValue({sublistId: 'billofmaterials', fieldId: 'currentrevision', line: 0});
You can also find this field through a scripted search or a lookupfields. You can refer to the records browser for more details: https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2019_1/script/record/bomrevision.html
To create a Work Order with a BOM Revision feeding all lines appropriately using native behavior in SuiteScript 2.0, you need to ensure that all the values are properly set. This includes the Item, Location, BOM and Revision, and Quantity fields. If one of these fields is not set properly, you may encounter an error.Celigo AI
08/14/2025, 7:25 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815734446
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806762755
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806208
Celigo AI
08/14/2025, 7:25 PM