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
  • +1
    Certified Associate Developer

     you will have to convert the value in column from array into one value, for example tostring("12345; 7166").

    a!queryFilter expects in the field to have only one value per row, and not an array.

    In your case value in the field c4 is an array {12345; 7176}, but it should be one value. If you concatenate them, or cast them to string, it will be considered as one value.

    After that filter will work.

    Beware that, if you use tostring, it will include all rows which have that value in that column.

    You will need to check which one you really need from the returned rows, or add additional filter(s) based on the business logic.

    I hope it helps you in this endeavor.

Reply
  • +1
    Certified Associate Developer

     you will have to convert the value in column from array into one value, for example tostring("12345; 7166").

    a!queryFilter expects in the field to have only one value per row, and not an array.

    In your case value in the field c4 is an array {12345; 7176}, but it should be one value. If you concatenate them, or cast them to string, it will be considered as one value.

    After that filter will work.

    Beware that, if you use tostring, it will include all rows which have that value in that column.

    You will need to check which one you really need from the returned rows, or add additional filter(s) based on the business logic.

    I hope it helps you in this endeavor.

Children
No Data