Promote BOM items

does anyone have any code that automatically promotes BOM items when the parent Part is promoted?  
Parents
  • Hi Dominic, You may be able to accomplish this by including an onBeforePromote or onAfterPromote server event on the Part ItemType. Taking this approach, you will only need to promote the immediate children of a Part. This will trigger the children's server events, so the promotion will trickle down the entire Part BOM structure. There are a few things to consider with this use case. Do you expect Parts to exist in multiple different BOMs? If so, how do you handle the case where a child Part is in a different state than the parent Part? If you add a new child Part to a BOM, should you require that it be in the same state as the parent? Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hi Dominic, You may be able to accomplish this by including an onBeforePromote or onAfterPromote server event on the Part ItemType. Taking this approach, you will only need to promote the immediate children of a Part. This will trigger the children's server events, so the promotion will trickle down the entire Part BOM structure. There are a few things to consider with this use case. Do you expect Parts to exist in multiple different BOMs? If so, how do you handle the case where a child Part is in a different state than the parent Part? If you add a new child Part to a BOM, should you require that it be in the same state as the parent? Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data