Forum Discussion
Hi,
Yes - it's possible - but I think there is something missing from your AML.
Here is example:
<Item type="Part BOM" action="add">
<related_id>
<Item type="Part" action="get">
<id>6411401035053</id>
</Item>
</related_id>
<source_id>
<Item type="Part" action="get">
<id>6411401035050</id>
</Item>
</source_id>
</Item>
So you need to have:
* Relationship type - in my example Part BOM - and I think in your AML it should be 'AP Initiative Target' (and action=''add' since you are creating this _relationship_.
* source item - and action='get' tells that this item is already in the Aras (if not, you might want to create it with action='add')
* related_id - the child of the relationship (and again, action='get' is actually search which returns (at least in this case) only one item)
You can test your AML with Nash (it comes with Aras installation) can be found: http://[your server]/InnovatorServer/client/scripts/nash.aspx - if you used the default URL:s when installing.
Hope this helps,
//Jukka.