2
I think it could be useful to have a new object type called QueryRef, which allows you to handle a query in a similar way to recordrefs.
For example, there could be the following method
Initialize(QueryID:integer)
that allows you to access a query using the ID directly and dynamically.
the new object should expose all the methods and properties of a normal Query object
STATUS DETAILS
Needs Votes

Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team