Aras Innovator Platform

Part BOM

For adding Part BOM relationships to an existing Part:

<BatchLoaderPrototype>
  <Item type="Part" where="item_number='@1' and is_current='1'" action="edit">
    <Relationships>
      <Item type="Part BOM" action="add">
        <related_id>
          <Item type="Part" where="item_number='@2' and is_current='1'" action="get" select="id">
        </related_id>
        <quantity>@3</quantity>
      </Item>
    </Relationships>
  </Item>
</BatchLoaderPrototype>

If you need to add many Part BOM relationships to the same Part, but do not want to version the item after every addition.

<BatchLoaderPrototype>
  <Item type="Part" where="item_number='@1' and is_current='1'" action="edit" version="0">
    <Relationships>
      <Item type="Part BOM" action="add">
        <related_id>
          <Item type="Part" where="item_number='@2' and is_current='1'" action="get" select="id">
        </related_id>
        <quantity>@3</quantity>
      </Item>
    </Relationships>
  </Item>

</BatchLoaderPrototype>