<?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 approval records based on request milestone in request table?</title><link>https://community.appian.com/discussions/f/data/39054/how-to-retrieve-approval-records-based-on-request-milestone-in-request-table</link><description>HI I&amp;#39;m working with the following table structures and need to display approval tasks to users based on the current milestone of each request. A task should be shown if the user is either directly assigned or belongs to the assigned group. Each row in</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/148236?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 05:16:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bc9c7b4-8c7a-4773-b60b-7f75a1c9148d</guid><dc:creator>BrandonKelly</dc:creator><description>&lt;p&gt;You can retrieve approval records based on milestones using a filtered query on the request table, applying a where clause that targets the milestone value. It&amp;rsquo;s important to keep data structure clean for this to work efficiently. This type of data filtering reminds me of &lt;a href="https://truowl.com/"&gt;https://truowl.com/&lt;/a&gt;, where precision and organization are key to academic success. Clean logic and structured queries lead to better results&amp;mdash;just like a well-organized essay or study plan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147892?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 21:23:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ce0d08b-e36e-4ed1-ba4e-4d2490ba582e</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ahhhh I see what you mean. One approach could be to try and create two separate record types (one for user approvals and one for group approvals with a source filter on each) and then use those relationships. You&amp;#39;re right - I forgot that you can&amp;#39;t set a custom record field as a user or group type (although it is something that is in consideration!) so probably the separate record types is your best bet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147889?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 18:11:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1eac0bad-2910-4fe3-90d9-86483c30c1dc</guid><dc:creator>adithyay811</dc:creator><description>&lt;p&gt;&lt;span&gt;I managed to segregate the data, but I&amp;#39;m unable to define the toUser function during real-time evaluation or sync-time evaluation. Additionally, the value is being defined as text and not as a user , and the custom field is not appearing on the security summary.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147888?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 17:46:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea75e2cd-805c-4344-bb3c-b9c67622d421</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you create a custom field that splits out the user or group into separate columns and use each of those columns to determine the security?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147887?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 17:44:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55636766-a75c-4dae-8821-332339f96ccb</guid><dc:creator>adithyay811</dc:creator><description>&lt;p&gt;We are currently storing user and Group in the same field with a separate column in DB to identify whether the approval is assigned to User or Group. In this case, appian is not&amp;nbsp;enabling the field as Appian detects the field as text and we cannot update the type to User or Group.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147886?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 17:32:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5d04c51-05f1-4851-aa9d-8b514bae2c18</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you use the &lt;a href="https://docs.appian.com/suite/help/latest/record-level-security.html#users-found-in-fields"&gt;users found in fields&lt;/a&gt;&amp;nbsp;option?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147884?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 17:26:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d81568a-ffb3-4c1b-9983-67751da2f58a</guid><dc:creator>adithyay811</dc:creator><description>&lt;p&gt;HI Peter,&amp;nbsp;&lt;br /&gt;looks like the issue we are still unable to solve the issue as we need to match the logged in User with the value in the field. But I don&amp;#39;t see a way to configure that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147802?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 21:16:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc190880-df92-43ec-9505-73d38b8d3e89</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Just create security rules for each of the scenarios you would like. You can set up rules with multiple groups and define conditions based on your data (i.e. only give visibility if the approval is done)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147798?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 16:49:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33a81c28-ef80-40ad-b595-553bbd996967</guid><dc:creator>adithyay811</dc:creator><description>&lt;p&gt;Thanks Peter. How would you handle if same user is part of multiple Groups? And these tasks should be displayed to the next approver only after the prior approval is done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to retrieve approval records based on request milestone in request table?</title><link>https://community.appian.com/thread/147796?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 16:12:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:455e8a11-d598-4458-8946-2054af191c73</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;This seems to me like a pretty commonly supported scenario for synced records. You can model each of the tables as a record type, create relationships between them, and apply &lt;a href="https://docs.appian.com/suite/help/latest/record-level-security.html"&gt;record-level security&lt;/a&gt; to the approval table (to ensure users can only see requests assigned to themselves, except for managers that can see tasks in their groups as well).&lt;/p&gt;
&lt;p&gt;I&amp;#39;d certainly recommend giving it a shot and letting us know if you run into any issues!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>