<?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>Dictionary operations</title><link>https://community.appian.com/discussions/f/general/28208/dictionary-operations</link><description>I have to local variables as input 
 1. List of dictionary : [ [ id:1,value:&amp;quot;abc&amp;quot; ] , [ id:2,value:&amp;quot;bbb&amp;quot; ] , [ id:4,value:&amp;quot;ccc&amp;quot; ] ] 
 2. List of integers: [1,4] 
 I want to create 3rd local variable (List of values) by selection value from dictionary</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dictionary operations</title><link>https://community.appian.com/thread/110120?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 17:59:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74b4be21-7ce1-4d17-9a67-f734ed33b046</guid><dc:creator>subhad</dc:creator><description>&lt;p&gt;Hi Vijaykumar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try the below code,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would suggest you to go over the Appian functions which I have mentioned in the snippet&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
local!list: {
{ id: 1, value: &amp;quot;abc&amp;quot; },
{ id: 2, value: &amp;quot;bbb&amp;quot; },
{ id: 4, value: &amp;quot;ccc&amp;quot; }
},
local!index: { 1, 4 },
index(
local!list.value,
wherecontains(local!index,tointeger(local!list.id)),
null
)

)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dictionary operations</title><link>https://community.appian.com/thread/110119?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 17:56:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76b64981-0279-43b4-9ac9-d3bc10de0f0c</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!dict: {
    { id: 1, value: &amp;quot;abc&amp;quot; },
    { id: 2, value: &amp;quot;abcde&amp;quot; },
    { id: 3, value: &amp;quot;pww&amp;quot; }
  },
  local!intArr: { 1, 3 },
  index(
    local!dict.value,
    wherecontains(
      tointeger(local!intArr),
      tointeger(local!dict.id)
    ),
    null
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>