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.

Rookie Asked on January 10, 2020 in SuiteScript.
Add Comment
1 Answer(s)

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

Beginner Answered on January 12, 2020.

Thank you!

on January 13, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor