Skip to main content
April 7, 2025
Question

Save in a process variable the results of a!queryProcessAnalytics.data

  • April 7, 2025
  • 2 replies
  • 0 views

Well, how am I supposed to reference the properties of this query in another process model? It is a dictionary, however I cannot reference a dictionary in a process model, so would it be supposed to convert the query to a map or what?

By the way, it contains some wierd properties like

c0, c1, c2...
dp0, dp1, dp2...

How could I cast this dictionary into a map then?

Thanks in advance

2 replies

stefanhelzle0001
April 7, 2025

Did you try this

cast(
  type!Map,
  a!queryProcessAnalytics(
    report: cons!SSH_REPORT_MY_TASKS
  )
)

For the "weird" properties, I suggest to read the documentation about how process reports work.

mikes0011
Brainy
April 7, 2025

What's your use case?  Remember also you can also wrap up a dictionary of data you want to use elsewhere into a JSON string and pass that easily to a process or whatever else you like.