Skip to main content
August 31, 2021
Question

To convert list of number outputs to array in expression rule

  • August 31, 2021
  • 7 replies
  • 0 views

Hi All,

I am getting the output as list of numbers, but I want the respective output in array format ,since I have to use that output in "value" parameter  in query filter in another expression rule.

PFB the screenshots,

Can you please help me on this to convert list of numbers to array, like {56,57,58,....}

Thanks in Advance.

7 replies

harshas2775
August 31, 2021

List of Numbers(Integer) is essentially an array of integers. This shouldn't be an issue if you want to pass this output as input to another rule. Are you getting any error while trying to do so?

Also, is the 'value' parameter in the other expression rule of Integer type and marked as multiple? If yes then you can simply pass in the first rule's output to it.  Since its already an array there is no need of conversion unless your 'value' parameter is not integer. 

August 31, 2021

Hi Harsha,

Yes I am getting error.

Here, in query filter ,in value parameter, the rule which I called here gives me   list of number outputs.

but it shows me the following error,

harshas2775
August 31, 2021

What is the data type for field recon_id in your cdt? Also, the QRYrule.data.recon_id output is of type list of number(integer) right?