Rob
03/28/2025, 9:49 PMCeligo AI
03/28/2025, 9:49 PMAI generated answer (using internal Slack threads):Based on the conversations, to add a list/record transaction to a sublist, you can use the
insertLine
and setSublistValue
methods in SuiteScript. Here is an example:
javascript
rec.insertLine({"sublistId": "package", "line": 0});
rec.setSublistValue({"sublistId": "package", "fieldId": "itemReceive", "value": true, "line": 0});
rec.setSublistValue({"sublistId": "package", "fieldId": "quantity", "value": 5, "line": 0});
In this example, rec
is the record you are working with, package
is the sublistId, itemReceive
and quantity
are the fieldIds, and true
and 5
are the values you want to set for these fields.
******
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
03/28/2025, 9:49 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851787746
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842511177
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841183305
Celigo AI
03/28/2025, 9:49 PM