<?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>Retriving specific data from a!queryprocessanalytics</title><link>https://community.appian.com/discussions/f/data/14154/retriving-specific-data-from-a-queryprocessanalytics</link><description>Hi All, 
 any help would be appreciated regarding the solution for situation below: 
 Situation : I have a task report that identifies the current owner of an acive task in a specific instance of a process. I also have a process-backed record that displays</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Retriving specific data from a!queryprocessanalytics</title><link>https://community.appian.com/thread/64036?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 19:23:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62207a5b-622d-4c27-b0ee-dc2b701a6394</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m pretty confused where this line of code comes from:&lt;/p&gt;
&lt;pre&gt;logicalExpression: a!queryFilter(local!queryResult.data.c4),&lt;/pre&gt;
&lt;p&gt;Have you defined local!queryResult somewhere prior to this?&amp;nbsp; Because this doesn&amp;#39;t resemble any proper usage of a local variable that I know of.&amp;nbsp; In my comment earlier, I was suggesting that you store the original query result (the query info you have copied into the original post) into the local variable, then address the specific data by calling &lt;code&gt;local!queryResult.data.c4&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retriving specific data from a!queryprocessanalytics</title><link>https://community.appian.com/thread/64035?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 19:18:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:890e36b2-497a-4cdb-9663-44b7f0194c6c</guid><dc:creator>parasc0001</dc:creator><description>Hi Carlos,&lt;br /&gt;
&lt;br /&gt;
Both recipes help in creating a grid for data retrived. I already have a grid defined in a record. I just need to populate the value of task owner as soon as someone accepts the task related to that process instance.  &lt;br /&gt;
&lt;br /&gt;
P.S.  I used this recipe to create the &amp;quot;task by user&amp;quot; dashboard already.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retriving specific data from a!queryprocessanalytics</title><link>https://community.appian.com/thread/64034?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 19:15:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfb73f69-fb32-42fb-9933-f2ea66ba61d9</guid><dc:creator>parasc0001</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;This is the expression i have used so far, i dont recieve the required result:&lt;/p&gt;
&lt;p&gt;a!queryProcessAnalytics(&lt;br /&gt; report: cons!XXXReport,&lt;br /&gt; query: a!query(&lt;br /&gt; logicalExpression: a!queryFilter(local!queryResult.data.c4),&lt;br /&gt; pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 25)&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; Result:&lt;br /&gt; Expression evaluation error at function a!applyComponents [line 95]: A grid layout column [label=&amp;ldquo;Task Owner&amp;rdquo;] has an invalid value for &amp;ldquo;component&amp;rdquo;. The component in row 1 encountered the following error: Expression evaluation error at function a!queryFilter [line 50]: Could not find variable &amp;#39;local!queryResult&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retriving specific data from a!queryprocessanalytics</title><link>https://community.appian.com/thread/64033?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 18:45:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a0b0131-39ef-46fd-b50d-e462db85b3cd</guid><dc:creator>Mike Schmitt</dc:creator><description>If you query into a local variable i.e. local!queryResult, I expect you can get the list of usernames by referring to the returned data dictionary properties, i.e. local!queryResult.data.c4 (which will be a list if more than one exist)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retriving specific data from a!queryprocessanalytics</title><link>https://community.appian.com/thread/64032?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 18:28:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3b5f7e8-c7f9-4820-8d33-f79f48459dca</guid><dc:creator>Carlos Santander</dc:creator><description>Take a look at the following recipes for examples:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.4/recipe_display_a_users_tasks_in_a_grid_with_task_links.html"&gt;docs.appian.com/.../recipe_display_a_users_tasks_in_a_grid_with_task_links.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.4/recipe_display_processes_by_process_model_with_status_icons.html"&gt;docs.appian.com/.../recipe_display_processes_by_process_model_with_status_icons.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>