<?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>Find length of an array embedded in a dictionary</title><link>https://community.appian.com/discussions/f/new-to-appian/18601/find-length-of-an-array-embedded-in-a-dictionary</link><description>What is the best way to determine the length of an array which is a member of a dictionary? 
 The length(array) or count(array) functions are frequently used to determine the length of an array or list of values. But if the array is a member of a dictionary</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Find length of an array embedded in a dictionary</title><link>https://community.appian.com/thread/73232?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2020 18:03:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5984a8f-b5d3-4d4d-833d-b10705671fdb</guid><dc:creator>arunramanathtm</dc:creator><description>&lt;p&gt;Use fn!flatten before finding the length of an array within a dictionary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find length of an array embedded in a dictionary</title><link>https://community.appian.com/thread/73228?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2020 17:14:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e02dfa79-fbe6-4e7d-8d8b-4fedaecd9966</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;The nested lists are not strongly typed, you can see this in the expression rule designer that local!nestedList.list is an Any Type (List of Text). To properly cast it I recommend using the cast function or using a!flatten() around you nested list. For example:&lt;/p&gt;
&lt;p&gt;length(a!flatten(local!nestedList.list))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>