<?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 add another column to the array of dictionary retrieved queryEntity</title><link>https://community.appian.com/discussions/f/user-interface/21025/how-to-add-another-column-to-the-array-of-dictionary-retrieved-queryentity</link><description>Hello, 
 I have a local variable which holds the data retrieved by the rule(queryEntity columns). 
 The columns retrieved are Col1, Col2. I want to add Col3 to this. 
 eg. local!QA[1]: [Id:243,value:&amp;quot;Question&amp;quot;] these are the columns retrieved from the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to add another column to the array of dictionary retrieved queryEntity</title><link>https://community.appian.com/thread/81903?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 12:09:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:944e8146-546a-4e46-af75-706af2865000</guid><dc:creator>natashan0002</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;Ranjith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It works!! Thank you &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add another column to the array of dictionary retrieved queryEntity</title><link>https://community.appian.com/thread/81902?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 11:47:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:44c52739-7399-455f-b9c4-51f7872aad74</guid><dc:creator>ranjith.shanmugam</dc:creator><description>&lt;p&gt;Hi Natasha,&lt;/p&gt;
&lt;p&gt;use the code below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!QA: {
    { Id: 234, value: &amp;quot;Question&amp;quot; },
    { Id: 235, value: &amp;quot;Question&amp;quot; }
  },
  a!flatten(a!forEach(
    local!QA,
    {
     {
        Id: fv!item.Id,
        value: fv!item.value,
        answer: &amp;quot; ANS&amp;quot;
      }
    }
  )
  )
)&lt;/pre&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/Screenshot-2021_2D00_05_2D00_22-at-5.17.02-PM.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>