<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/discussions/f/rules/21770/to-convert-list-of-number-outputs-to-array-in-expression-rule</link><description>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 &amp;quot;value&amp;quot; parameter in query filter in another expression rule. 
 PFB the screenshots, 
 
 Can you please help me</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85212?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 07:53:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:025389aa-1a02-4f91-b79f-a4ff4898a732</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Happy to help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85208?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 07:07:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e6bf808-b2d9-4f10-9ca9-1bb59f036e56</guid><dc:creator>Jansi J</dc:creator><description>&lt;p&gt;Yes,it works now.Many thanks Harsha!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85207?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 07:04:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c792440b-f760-45f7-83cf-d4da89078004</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;alright! just try wrapping your query rule with tointeger() like this :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;value : tointeger(rule!QRY_rule.data.recon_id)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85204?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 06:54:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13860cd8-c410-424b-85b3-90da6610475b</guid><dc:creator>Jansi J</dc:creator><description>&lt;p&gt;in CDT the recon_id is number(Integer) and&amp;nbsp;&lt;span&gt;QRYrule.data.recon_id output is of type list of number(integer)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85203?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 06:51:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9cb1b6b0-22c9-45a5-915c-de1e7e1433b5</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;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?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85199?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 06:43:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b8434de-c19b-4426-9ddb-98525c1b8988</guid><dc:creator>Jansi J</dc:creator><description>&lt;p&gt;Hi Harsha,&lt;/p&gt;
&lt;p&gt;Yes I am getting error.&lt;/p&gt;
&lt;p&gt;Here, in query filter ,in value parameter, the rule which I called here gives me&amp;nbsp; &amp;nbsp;list of number outputs.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1630391972204v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but it shows me the following error,&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1630392154475v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To convert list of number outputs to array in expression rule</title><link>https://community.appian.com/thread/85193?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 06:25:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1eb3b73c-0723-4078-92ca-d894ec028f07</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;List of Numbers(Integer) is essentially an array of integers. This shouldn&amp;#39;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?&lt;/p&gt;
&lt;p&gt;Also, is the &amp;#39;value&amp;#39; parameter in the other expression rule of Integer type and marked as multiple? If yes then you can simply pass in the first rule&amp;#39;s output to it.&amp;nbsp; Since its already an array there is no need of conversion unless your &amp;#39;value&amp;#39; parameter is not integer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>