Scripting Subrecords that Occur on Sublist Lines
In many cases, a subrecord is accessed through a field on a sublist line. For example:
-
Every purchase order must include a list of items. Depending on the configuration of each item, the sublist line may be required to include an inventory detail subrecord.
-
A vendor bill may include a list of items. If the bill is configured to track landed cost per line, each line in the Items sublist may include a landed cost subrecord.
-
An employee may have multiple addresses. Each address is stored in a subrecord, and each subrecord is associated with a line in the Address sublist.
In each case, the sublist line also has fields that are not part of the subrecord. The subrecord itself is associated with only one field on the sublist line. In the SuiteScript Records Browser, this field is always identified as a field of type summary.
For more details, see the following sections:
-
Using SuiteScript 2.x to Create a Subrecord in a Sublist Field
-
Using SuiteScript 2.x to Edit a Subrecord that Occurs in a Sublist Field