<?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>How to loop through the items of a Dictionary?</title><link>https://community.appian.com/discussions/f/general/13683/how-to-loop-through-the-items-of-a-dictionary</link><description>I have a Dictionary value which can change on time. I want run a foreach loop on the items of the Dictionary. How would I do that? An example dictionary is given below. 
 busNumber: 499.99 
 accountId: &amp;quot;7000&amp;quot; 
 roadNumber: &amp;quot;asw12&amp;quot; 
 category: &amp;quot;12&amp;quot; 
 productId</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to loop through the items of a Dictionary?</title><link>https://community.appian.com/thread/62482?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 17:50:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93c6e0df-4736-43f0-8529-e06048aefdf2</guid><dc:creator>aswinb608</dc:creator><description>local!dict:{{id: 1}, {id: 2}, {id: 3}}&lt;br /&gt;
a!forEach(items: local!dict,&lt;br /&gt;
expression: rule!exp(input: fv!item)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to loop through the items of a Dictionary?</title><link>https://community.appian.com/thread/62409?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 10:14:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98df564e-4e55-47ac-aedc-f2ad9b720038</guid><dc:creator>sudip.das005</dc:creator><description>Thanks everyone&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to loop through the items of a Dictionary?</title><link>https://community.appian.com/thread/62326?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 21:20:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06547cdc-4c6c-441e-9d54-932da15a071c</guid><dc:creator>legodfw</dc:creator><description>&lt;p&gt;Use the a!forEach. Also it depends on what you intend to do with your dictionary. If you have other operations for it.&lt;br /&gt; &lt;br /&gt; You can use the &amp;quot;apply()&amp;quot; function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to loop through the items of a Dictionary?</title><link>https://community.appian.com/thread/62106?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 08:33:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea01e916-8660-4331-8560-0dc866aec9dc</guid><dc:creator>Aditya GIll</dc:creator><description>Please check this code:&lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
  local!data: a!toJson(&lt;br /&gt;
    ri!data&lt;br /&gt;
  ),&lt;br /&gt;
  local!data1: a!forEach(&lt;br /&gt;
    items: split(local!data,&amp;quot;,&amp;quot;),&lt;br /&gt;
    expression: fv!item&lt;br /&gt;
  ),&lt;br /&gt;
   local!data1&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>