<?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>Is there a way to group array data together into single array item?</title><link>https://community.appian.com/discussions/f/data/12257/is-there-a-way-to-group-array-data-together-into-single-array-item</link><description>Hello All, 
 Do we have any logic exists for grouping the array of data&amp;#39;s into single array item and so on? Here is a quick example 
 
 Suppose my CDT has total 10 items. Now I want to reconfigure this item in a way that a second variable has 5 items</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a way to group array data together into single array item?</title><link>https://community.appian.com/thread/54257?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 18:30:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61145b8c-23c3-41af-a4f9-79c86f4a11f9</guid><dc:creator>Anna Pol</dc:creator><description>Vivek, Are you using &amp;quot;Parse Excel to CDT&amp;quot; or &amp;quot;Export CDT To Excel&amp;quot;, if you are using Parse Excel to CDT then store your output in multiple type cdt.. it will gives you row wise entries in cdt.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to group array data together into single array item?</title><link>https://community.appian.com/thread/54246?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 10:53:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa893d91-360e-49fa-83a7-157d5311dc14</guid><dc:creator>syedi564</dc:creator><description>&lt;p&gt;I am not sure how exactly you want it to group, I have placed a sample code below. &amp;nbsp;take a look into it and let me know if it helps&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;with(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp;local!data:{1,2,3,4,5,6},/*Data list*/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp;local!columnCount:3,/*Number of columns*/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp;local!column: a!forEach(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; &amp;nbsp;enumerate(local!columnCount),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;index(local!data, where( &amp;nbsp;apply(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; &amp;nbsp;mod(_,local!columnCount),enumerate(count(local!data)))=fv!item),{})&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; &amp;nbsp;) ,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;local!column&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to group array data together into single array item?</title><link>https://community.appian.com/thread/54245?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 10:17:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9066066d-2982-42a1-85aa-3739630ff5c5</guid><dc:creator>viveku3486</dc:creator><description>Sure,Let me brief the scenario. So what happening here is I have a cdt which consists of multiple values for launching a job. Currently we are planning to build an application where users can launch jobs in bulk. Hence we are using export cdt to excel smart service for taking users input. Now once user uploads the file after adding required fields in the excel file. The final cdt have values for all the jobs that need to be launched. i.e lets say user wants to launch five jobs at a time then my cdt consists of array for all the five jobs. As we have to send the values one by one in order to launch successive jobs. I need to group required data for a job into single array. For example&lt;br /&gt;
&lt;br /&gt;
suppose below fields are required to launch a job&lt;br /&gt;
&lt;br /&gt;
ID     Name       Parameter&lt;br /&gt;
1        abc           pqr&lt;br /&gt;
2        lmn          xyz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So as you can see the above information given is for launching two jobs as we have two rows but the cdt which consists of this data has an array size of 6. So I want to reform another cdt which stores values of first row in a single array position and values of second row in another array index and by that way I can send the parameters one by one to launch my jobs.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to group array data together into single array item?</title><link>https://community.appian.com/thread/54242?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 09:51:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9520f1c9-9f41-474b-afef-3094e838bd8d</guid><dc:creator>aloks0189</dc:creator><description>Hi   are you trying to split a cdt array into two parts? Or do you want to merge 2 cdt into one?&lt;br /&gt;
&lt;br /&gt;
Can you please elaborate your use case&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to group array data together into single array item?</title><link>https://community.appian.com/thread/54241?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 09:44:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca63f4bd-97ce-4ef1-bf96-c35d7f35725c</guid><dc:creator>Jayapriya Muthu</dc:creator><description>Can you please explain with some sample data?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>