So I’m just trying to make a simple find() method work. It should work for all users regardless of their rights. But for some reason, it only works for users with admin rights. For users without the admin role, table is empty, AX can’t see records.
I also tried using SecurityUtil::sysAdminMode() method to disable admin role. In this case as well, AX can’t see any records in the table. Even when I open the table through a table browser, it is empty!
Can anyone tell me why is AX executing the code in the context of the current user? I tried deleting cahces, AUCs, etc. The table is RetailStoreTable.
I’m very tired and maybe I’m missing something very simple but I don’t know what…