<?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 Retrieve Data</title><link>https://community.appian.com/discussions/f/general/39560/how-to-retrieve-data</link><description>Hi Everyone, 
 I need to get &amp;quot;choiceLabels&amp;quot; and &amp;quot;choiceValues&amp;quot; list from the dictionary as shown in screenshot. Can anyone please help me how to get it?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Retrieve Data</title><link>https://community.appian.com/thread/150639?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2025 11:04:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37852981-8859-4c99-be33-c37667abcc00</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;If i understood correctly, you need to retrieve choiceValue and choiceLabel from dictionary.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Use index() for null safe expression&lt;/strong&gt;&lt;br /&gt; local!choiceLabels: index(yourDictionary, &amp;quot;choiceLabels&amp;quot;, {}), &lt;br /&gt; local!choiceValues: index(yourDictionary, &amp;quot;choiceValues&amp;quot;, {}),&lt;br /&gt;&lt;br /&gt;Check below interface expression for your reference.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  /* Example dictionary similar to yours */
  local!myDictionary: a!map(
    choiceValues: {&amp;quot;001&amp;quot;, &amp;quot;002&amp;quot;, &amp;quot;003&amp;quot;, &amp;quot;004&amp;quot;, &amp;quot;005&amp;quot;},
    choiceLabels: {&amp;quot;Option 1&amp;quot;, &amp;quot;Option 2&amp;quot;, &amp;quot;Option 3&amp;quot;, &amp;quot;Option 4&amp;quot;, &amp;quot;Option 5&amp;quot;},
    data: {/* your data here */}
  ),

  /* Extract both lists */
  local!extractedLabels: index(local!myDictionary, &amp;quot;choiceLabels&amp;quot;, {}),
  local!extractedValues: index(local!myDictionary, &amp;quot;choiceValues&amp;quot;, {}),

  /* Variable to store selected value */
  local!selectedValue: null,

  /* Display in a form */
  a!formLayout(
    titleBar: &amp;quot;Dictionary Example&amp;quot;,
    contents: {
      /* Use in dropdown */
      a!dropdownField(
        label: &amp;quot;Select an Option&amp;quot;,
        placeholder: &amp;quot;Choose...&amp;quot;,
        choiceLabels: local!extractedLabels,
        choiceValues: local!extractedValues,
        value: local!selectedValue,
        saveInto: local!selectedValue
      ),

    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Retrieve Data</title><link>https://community.appian.com/thread/150638?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2025 10:46:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7642201b-6c03-4d29-a85f-cb61d2bc6bf5</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;You can try like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  index(local!data,&amp;quot;choiceLabels&amp;quot;,{}),
  index(local!data,&amp;quot;choiceValues&amp;quot;,{})
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Retrieve Data</title><link>https://community.appian.com/thread/150635?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2025 10:37:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:168a8b9f-fe21-4bbc-b527-1b74d80b087e</guid><dc:creator>Rahul009</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I need both choiceValues and choiceLabels list at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Retrieve Data</title><link>https://community.appian.com/thread/150634?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2025 10:35:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59d3ffd7-9dc8-49f4-8131-3811c367e348</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Whichever rule or variable this data is coming from, you can get the fields using property(), index() or dot-notation.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;index(local!data,&amp;quot;choiceValues&amp;quot;,{})
property(local!data,&amp;quot;choiceValues&amp;quot;,{})
local!data.choiceValues
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Retrieve Data</title><link>https://community.appian.com/thread/150631?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2025 10:30:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3d9187a-8532-4ad3-9a79-3121029f9a9b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;We need a bit more context.&lt;/p&gt;
&lt;p&gt;In general, as per the Appian documentation, we use the dot-notation to fetch values from dictionaries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>