Aras Innovator Platform

Part Goal

For adding Part Goal relationships to an existing Part:

<BatchLoaderPrototype>

  <Item type="Part" where="item_number='@1' and is_current='1'" action="edit">

    <Relationships>

      <Item type="Part Goal" action="add">

        <goal>@2</goal>

        <target_value>@3</target_value>

        <estimated_value>@4</estimated_value>

        <actual_value>@5</actual_value>

      </Item>

    </Relationships>

  </Item>

</BatchLoaderPrototype>

For adding a new Part with a Part Goal:

<BatchLoaderPrototype>

  <Item type="Part" action="add">

    <item_number>@1</item_number>

    <name>@2</name>

    <description>@3</description>

    <owned_by_id>

      <Item type="Identity" action="get" select="id">

        <keyed_name>@4</keyed_name>

      </Item>

    </owned_by_id>

    <managed_by_id>

      <Item type="Identity" action="get" select="id">

        <keyed_name>@5</keyed_name>

      </Item>

    </managed_by_id>

    <classification>@6</classification>

    <unit>@7</unit>

    <make_buy>@8</make_buy>

    <Relationships>

      <Item type="Part Goal" action="add">

        <goal>@9</goal>

        <target_value>@10</target_value>

        <estimated_value>@11</estimated_value>

        <actual_value>@12</actual_value>

      </Item>

    </Relationships>

  </Item>

</BatchLoaderPrototype>