Forum Discussion
Zahar_Chernov
9 years agoCreator II
Your first where="[Property].keyed_name = 'era_locked_by'" is too "general"
There can be more than one property with the name "era_locked_by".
Try to add
and [Property].source_id = (select id from [ItemType] where name ='{YOUR_ITEM_TYPE_NAME}')
In your second where try to keep names of ItemType as it in Aras:
where="[Property].keyed_name = 'locked_by_id' and [Property].source_id in (select it.ID from innovator.ITEMTYPE it where it.name = 'Document')"