<?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>loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/discussions/f/process/14535/loop-through-json-values-and-perfrom-an-action-on-each-loop-count</link><description>Hi all, 
 can anyone please help me out with how to loop through JSON values and perform some events on each loop. 
 Warm Regards 
 Vineeth</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65257?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 16:17:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dc9204a-d34a-43c2-a56e-4da41cfc8427</guid><dc:creator>Stewart Burchell</dc:creator><description>I don&amp;#39;t think this is a &amp;quot;sample code&amp;quot; scenario as I believe (from what I&amp;#39;ve understood so far) that this is probably a combination of a User Interface AND a Process Model and may well involve a Record type...so we&amp;#39;re headed towards a full Application which I can&amp;#39;t just provide a sample of. Are you able to articulate the requirements with more precision? Who needs to do what and why? What&amp;#39;s the trigger for the scenario? What is the outcome? And what needs to happen in between?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65227?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 05:35:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ad53ca1-b6d1-46fd-8d98-fefdc4fec52f</guid><dc:creator>vineethk0001</dc:creator><description>can you please send me a sample code for this, am new to Appian, so am not getting how to get all the approvers from the grid and assign the task to everyone and wait for all approvers result.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65219?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 14:00:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d863591d-5b1b-41c0-a88f-15968336fdff</guid><dc:creator>Stewart Burchell</dc:creator><description>Ok. So now I don&amp;#39;t understand why you&amp;#39;re having to deal with JSON? If you&amp;#39;re selecting one or more &amp;#39;Approvers&amp;#39; (and you can implement this using the User Picker object, or a drop-down built form a list of Users) then you can pass this list to the Process as an array of Users. Where does the JSON come into the design?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65218?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 13:52:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9983ab95-2c2d-40bd-a58b-29727bfc842c</guid><dc:creator>vineethk0001</dc:creator><description>Hi Stewart, my req is , I have a form where the user can add multiple approver, so once they add the approvers and hit submit(I have used grid layout for this), now in the process, it has to send a task to all the approvers in the grid layout.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65214?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 11:25:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a05fe3d6-9812-4166-91b1-9f866770e8c6</guid><dc:creator>Stewart Burchell</dc:creator><description>Hi Vineeth - still not entirely clear what you want to achieve...but if you want to assign Tasks to Users based upon data, you&amp;#39;ll want to make the Assignments in a Process and THEN display the data in a Grid, not the other way around.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65213?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 09:56:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bf6e06b-4572-4598-ba89-c1cb01de942b</guid><dc:creator>vineethk0001</dc:creator><description>Hi Stewart, thanks for the reply, the thing is , am trying to populate the grid(done), now getting the data from the grid in for loop, so that i can assign a task to all user is the Grid column individually&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: loop through json values and perfrom an action on each loop count</title><link>https://community.appian.com/thread/65212?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 09:24:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f32fae63-5d76-4c84-9246-b7742046f7f6</guid><dc:creator>Stewart Burchell</dc:creator><description>Hi Vineeth - we probably need a little bit more information on exactly what you&amp;#39;re trying to achieve. Off the top of my head, you could transform the JSON into a an equivalent CDT - using a!fromJson() - and then use a!forEach() to process the array of items...but without more detail I&amp;#39;m applying some significant guesswork here...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>