Hello all!
I am working on a Security policy where I need to restrict Sales orders on the basis of Business unit/Operating unit assigned to the user. Everything is working here if i manually add data to the "MyBusinessUnits" temporary table. My issue is that the xds() method is not working and therefore the temp table is not being populated with the desired data in order to filter the Sales orders.
Below are the screenshots:
1. Properties of the Policy

2. xds method

3. Policy query

Is there any configuration that i am missing that is causing the xds() to not execute?