<?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>Get Task ID to bind with URL and send that URL to Approval&amp;#39;s  Email address to notify it</title><link>https://community.appian.com/discussions/f/process/13991/get-task-id-to-bind-with-url-and-send-that-url-to-approval-s-email-address-to-notify-it</link><description>Hello, 
 Before assigning the Approval i want to send Email to Approval and then assign Task to Approval as shown in following Image(A). 
 Image(A) 
 
 In that email i want the Task ID which i get it following way as shown in following Image(B), but it</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/84426?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 13:57:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b68157a3-4562-4f96-b61d-246d57bc13a6</guid><dc:creator>kavyanatrajan</dc:creator><description>&lt;p&gt;Hi Amit,&lt;/p&gt;
&lt;p&gt;I receive the task ID . Explain about how to bind with URL of tempo or Site.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/75368?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 11:12:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecfb067c-9f52-476a-bf16-a6ea79eb8034</guid><dc:creator>heidergger</dc:creator><description>&lt;p&gt;Many Thanks, already i could find the task id, always your screenshot is useful than many words.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/71058?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 15:32:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b49e4a48-0915-4965-a5c5-502c5eb69ea3</guid><dc:creator>venuk0001</dc:creator><description>&lt;p&gt;Great !! This worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/71049?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 11:39:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97fb5a5c-d53a-4ffb-b3f4-7bfc63ce453c</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Here&amp;#39;s a pattern that will guarantee that the Task as been assigned before you attempt to retrieve the Task Id with the process analytics:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1576668986998v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This uses an immediate Escalation on the Task (i.e. the wait time is 0 minutes) and uses the &amp;#39;Send Message&amp;#39; option to send a message to a listener in the same Process Model (note: if there are possible concurrent instances of this process model you&amp;#39;ll need to ensure you send the message to the specified Process Instance by setting the &amp;#39;&lt;span&gt;DestinationProcessID&amp;#39; (this is best practice anyway!)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/71047?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2019 08:43:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ce6fb60-d77d-42a5-8ec1-774a6d4a2c9f</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hi venuk0001,&lt;/p&gt;
&lt;p&gt;Just Follow the steps which i told to&amp;nbsp;&lt;span&gt;&lt;strong&gt;shrutik11,&lt;/strong&gt; and also i mention one process model screenshot first try one demo separately and remember you have to bind that task id with your org url of task &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;for example&amp;gt;&amp;gt;&lt;/strong&gt; &amp;quot;&lt;a href="https://example.com/suite/sites/mypage/page/viewTask/task/"&gt;&amp;quot;&amp;gt;example.com/.../&amp;quot;&amp;#160;&amp;#160;&amp;amp;a!queryProcessAnalytics(report:&lt;/a&gt; cons!DDG_UserTask, contextUsers: &amp;quot;user_name&amp;quot;).data.dp0[1]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;like this, i am using same and i am getting newly created task id.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amit Behere(&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="/members/amitb0004"&gt;amitb0004&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/71040?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 20:46:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d576460-1377-4a27-9579-ae03eaf35b4f</guid><dc:creator>venuk0001</dc:creator><description>&lt;p&gt;Hi Amit,&lt;/p&gt;
&lt;p&gt;This does not work for me. I am getting the previous task Id. Not the current one. How in the AND gateway we ensure that we query the report after the UIT is assigned when they are run in parallel?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63783?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 06:07:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be1de917-5bd2-4f61-be8e-ebe7e675cbc6</guid><dc:creator>shrutik11</dc:creator><description>&lt;p&gt;Hi Amit,&lt;br /&gt; &lt;br /&gt; Thank you for your reply. I have used below query and it is working fine for me.&lt;br /&gt; &lt;br /&gt; a!queryProcessAnalytics(report: cons!My_Tasks, contextGroups: cons!Approver).identifiers[1]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63749?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 05:35:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4d86575-57bf-41a3-abe6-29c9a0c40c3f</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;hello shrutik11,&lt;/p&gt;
&lt;p&gt;1. create constant &amp;quot;cons!MY_TASKS&amp;quot; first&lt;/p&gt;
&lt;p&gt;2. Then use following code to get the current task id of Approval&lt;/p&gt;
&lt;p&gt;&amp;quot;a!queryProcessAnalytics(report: cons!DDG_UserTask, contextUsers: &amp;quot;user_name&amp;quot;).data.dp0[1]&amp;quot;&lt;/p&gt;
&lt;p&gt;pass Approval username instead of &amp;quot;user_name&amp;quot; in above code, mention username to whom approval is assigning(or user input task)&lt;/p&gt;
&lt;p&gt;3. These will return you Task id of Approval and then bind with URL of Tempo or Site.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/7178.res.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/7178.res.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63700?ContentTypeID=1</link><pubDate>Fri, 28 Dec 2018 11:28:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d895bde1-6b5f-49d9-8a5f-aa690e845c1c</guid><dc:creator>shrutik11</dc:creator><description>&lt;p&gt;hi Amit,&lt;/p&gt;
&lt;p&gt;We have also tried to implement same logic for fetching task id in our customized email but we are getting task id which is incorrect task id (for example : if task id is 268445168 then in email we are getting 268445171)&lt;/p&gt;
&lt;p&gt;The steps that we followed are:&lt;/p&gt;
&lt;p&gt;1. Created a report of type &amp;quot;task&amp;quot; to fetch user tasks.&lt;/p&gt;
&lt;p&gt;2. We ussed &amp;quot;Execute Process Report&amp;quot; smart service and connected it with Email smart service&lt;/p&gt;
&lt;p&gt;We used AND gateway in which path -1 is having user input task connected to End shape &amp;amp; path-2 is having &amp;quot;Execute Process Report&amp;quot; smart service and Email smart service connected to End shape to fetch task id and send Email to approver.&lt;/p&gt;
&lt;p&gt;So, can you suggest us what we can modify in order to get correct task id. Do we need apply any filter or any query to get the correct task id.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63479?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 13:44:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fe9170f-9705-491d-af51-db699eba79e0</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Navajith K,&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;Navajith K&lt;/p&gt;
&lt;p&gt;&amp;nbsp;All above reply related to my query is working properly and i am able to getting latest Task ID using following function you suggested.&lt;/p&gt;
&lt;table class="rouge-table"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td class="rouge-gutter gl"&gt;
&lt;pre class="lineno"&gt;1
&lt;/pre&gt;
&lt;/td&gt;
&lt;td class="rouge-code"&gt;
&lt;pre&gt;&lt;span class="nf"&gt;a!queryProcessAnalytics&lt;/span&gt;&lt;span class="ow"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;report:&lt;/span&gt; &lt;span class="no"&gt;cons!MY_TASKS&lt;/span&gt;&lt;span class="ow"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;contextUsers:&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;user.name&amp;quot;&lt;/span&gt;&lt;span class="ow"&gt;)&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;br /&gt;It&amp;#39;s Working...&lt;/p&gt;
&lt;pre class="highlight"&gt;&amp;nbsp;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63476?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 11:36:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04c1f945-6f47-44b2-9018-0ba3fc329097</guid><dc:creator>Navajith K</dc:creator><description>Yes, before send email node, you can put a script task to call an expression rule that query a portal report or use execute process report smart service to get the task ID from process report.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63475?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 10:56:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c63a9d59-e9c9-4dbe-84d9-08fce27a1f46</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hi Navajith K,&lt;/p&gt;
&lt;p&gt;Thanks for reply,&lt;/p&gt;
&lt;p&gt;So what i understand from you result as mention it in following&amp;nbsp;Image(C)&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/14/res.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/res.PNG" alt=" " /&gt;&lt;/a&gt;Image(C)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This&amp;nbsp;is what i understood, is it correct understanding?&lt;/strong&gt; and in parallel i have to used&amp;nbsp;a!queryporcessanalytics to get Task ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Task ID to bind with URL and send that URL to Approval's  Email address to notify it</title><link>https://community.appian.com/thread/63468?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 06:10:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36baef56-951c-488c-9c4a-e50f11009e08</guid><dc:creator>Navajith K</dc:creator><description>Hi You will have to trigger the task, get the task ID and then create and send the link  in email. Put an AND gateway to split the flow. one flow should trigger the task and the other flow should query a portal report, using a!queryporcessanalytics function to get the task ID of the task triggered in the other flow and then create and send the link via send email node. Hope this helps.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>