I have a process variable of type RecordType in processes. Now I want to read the data in an expression rule.
The output now returns fields with the names c1, c2, c3, c4, ... My data from RecordType is in c4.
Can I filter the data directly with a!queryProcessAnalytics via a!query? For example, only the data records that were created in a specific country?
Expression Rule:
a!queryProcessAnalytics( report: cons!PGN_REPORT, contextProcessModels: cons!PGN_PROCESS_MODEL, query: a!query( filter: a!queryFilter(field: "c4"[country], operator: "=", value: "UK"), pagingInfo: a!pagingInfo(startIndex: 1, batchSize: - 1) ))
In my example, I realize that “c4”[country] does not work, but what do I need to write for this?
Discussion posts and replies are publicly visible
Process reports do not support Record Type fields directly. You should copy the needed Record Type data into separate process variables (text) in process to include and filter them in the report.