Former_Member
8 years agoAccelerator III
Reverse Relationship for Affected Items
I use the below script to query all the Affected Items, but this returns all the relationships and many nodes.
<Item isNew="1" isTemp="1" type="ECN" action="get" id="{id}" select="config_id,item_number">
<Relationships>
<Item isNew="1" isTemp="1" type="ECN Affected Item" action="get" select="related_id">
<related_id>
<Item isNew="1" isTemp="1" type="Affected Item" action="get" select="new_item_id(config_id,item_number,name,generation,major_rev), affected_id(config_id,item_number,name,generation,major_rev)" />
</related_id>
</Item>
</Relationships>
</Item>
But I would like to return only Documents linked to the given ECN id. Anyone can help to rewrite the query to return only the final "Document" item types.?