Multiple values in Process Report column

Certified Associate Developer

Hello everyone,

I am having issues with querying process report which has multiple (different) values in one column. The column is filled with data from a list of CDTs, for example:

I've tried setting it as a list of integers and strings, but either way, when trying to query all rows which have a value "12345" in that column (by using a!queryProcessAnalytics), I get no results.

 a!queryFilter(
    field: "c4",
    operator: "includes",
    value: tostring("12345")
)

I also tried all different combinatios (in, includes, strings, integers....).

Thanks in advance!

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Associate Developer
    in reply to anak3061

    What you could do more is to build a logic and additionally filter the result set of the initial queryProcessAnalytics.

    You could try this one:

    a!localVariables(
      local!resultData: a!queryProcessAnalytics(
        report: cons!DS_TASK_ASSIGMENT_PBPM,
        contextProcessModels: cons!DS_PM_TASK_ASSIGNMENT,
        query: a!query(
          filter: a!queryFilter(
            field: "c3",
            operator: "includes",
            value: ri!text
          ),
          pagingInfo: a!pagingInfo(1, 10)
        )
      ).data.c3,
      local!splitText: a!forEach(
        items: local!resultData,
        expression: fn!split(fv!item, ";")
      ),
      local!searchIndexes: wherecontains(
        ri!text,
        touniformstring(local!splitText)
      ),
      index(
        local!resultData,
        local!searchIndexes,
        null()
      )
    )

    This is the result 

Children
No Data