Forum Discussion
majorbyte
9 years agoIdeator III
I managed to get it working by rewriting the inner where statement to a nested <Item action=get>
<Item action="edit" type="Property" where="[Property].keyed_name = 'era_locked_by' and [Property].source_id = (select id from [ItemType] where name ='Document')">
<data_source keyed_name="locked_by_id">
<Item type="Property" action="get" select="id">
<keyed_name>locked_by_id</keyed_name>
<source_id>
<Item type='ItemType' action='get'>
<name>Document</name>
</Item>
</source_id>
</Item>
</data_source>
</Item>
So my initial feeling was (probably?) right, that AML can't copy really well with nested where-statements.