To convert list of number outputs to array in expression rule

Certified Senior Developer

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.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    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. 

Reply
  • 0
    Certified Lead Developer

    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. 

Children