AML where condition based on keyed name

Hi community,

I am trying to transform a where condition based on id into a where condition based on the keyed name or item_number

Outside a where condition it would be

< source _id>

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

<keyed_name>PartB</keyed_name>

</Item>

</ source _id >

I tried something like :

where="[Part BOM]. source_id='qsdmlsdkfsd51651681q3s5dq3s5d1'"

into

where="[Part BOM]. source_id.item_number='PartB'"

Thanks for the help !

Best regards,

Hadrien