have you ever tried to run a query in a scope of an end-user by using an action? It isn’t possible by default.
You are not allowed to enter a query object in the RunObject property and there is no myquery.RUN function. What you can do is export a query to file, but I want to open the query result as an user inside NAV 2013.
By having some knowledge about NAV 2009 and starting objects I tried the following C/AL statement
AND? Yes this is working!