I am trying to get the count from a table and applying record level security, but in the where clause, when I am comparing it with my auth field, it is saying "Invalid Query"
For instance, my query:
ISNULL((SELECT COUNT(DISTINCT [@field:PropertyKeyId]) FROM UI_FactTrxn_1 WHERE [@field:InvestorUserId] = [@authfield:Users_UserId]),0)
I am getting Invalid error for this.
But when I am trying to pass the string in place of authfield, it is a valid one!
Can anyone please help me on this?