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
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.
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,
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?
in CDT the recon_id is number(Integer) and QRYrule.data.recon_id output is of type list of number(integer)
alright! just try wrapping your query rule with tointeger() like this :
value : tointeger(rule!QRY_rule.data.recon_id)
Yes,it works now.Many thanks Harsha!!
Happy to help!