How do you access the Bill of Materials sublist field on the Assembly Item record under the Manufacturing tab on the BOM sublist via scripting?
To anyone who has Advanced BOMs turned on, do you know of a way to access the Bill of Materials sublist field via scripting? It is on the Assembly Item record under the Manufacturing tab on the Bill of Materials sublist.
Hi sarah,
you should be able to loop through bill of Materials line using the Line Group – billofmaterials
once you have got the count of Line Item (‘billofmaterials), you can loop through the lines and get the field values.
these are the set of fields we have in our instance.
- billofmaterials“
- “canbedefaultforlocation“
- “canbemaster“
- “currentrevision“
- “defaultforlocation“
- “inactive“
- “masterdefault“
- “memo“
hope this helps.
thanks
Thank you!