I am trying to make dynamic priorities for an alarm by querying the priorities from a database.
I use the runScript function in the expression to call the system.db.runNamedQuery. However, how do I pass in the arguments for system.db.runNamedQuery when the argument should be a dictionary?
Here is my expression so far but that is giving an error:
Is there a neat trick to accomplish this?
I am aware that I could use another function like system.db.runQuery with the query as a string. But I want to keep all the queries as Named Queries so I can maintain all of them from there.