<?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 get the taskId of task being assigned</title><link>https://community.appian.com/discussions/f/user-interface/7939/how-to-get-the-taskid-of-task-being-assigned</link><description>If we plan to send a customized email notification for users for task assignment, how do we send the link for the task?? point here, is there a way where i can get the taskId of the task being assigned (other than creating the report and getting the task</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/91295?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 05:05:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b90763f-fe6a-4e7a-9559-76570b47e0be</guid><dc:creator>InderpreetKaur</dc:creator><description>&lt;p&gt;&lt;span&gt;Got the desired result using function&amp;nbsp; fn!getactivetaskidsforprocess() in a script task.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/91294?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 05:04:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a502482-9790-4a14-b07e-89aab203712c</guid><dc:creator>InderpreetKaur</dc:creator><description>&lt;p&gt;Not returning current task Id. Every time returned the past id using this method.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Got the desired result using function&amp;nbsp; fn!getactivetaskidsforprocess() in a script task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/64421?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:07:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a44d8b80-7544-4758-9e66-61574bd697d8</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hi Raghu,&lt;/p&gt;
&lt;p&gt;If you want to bind Task Id with email notification, you can do it easily by following below steps&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/13/5226.task-IdUp.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/5226.task-IdUp.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/32949?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 20:03:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26871cd5-f56b-43f9-b717-cc9e4af636ff</guid><dc:creator>raghunandanj3904</dc:creator><description>Appreciate the help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/32948?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 20:02:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9eec84f-54ce-4a3c-9160-d91209fbff2f</guid><dc:creator>sikhivahans</dc:creator><description>@raghunandanc Yes, you can and to make the design fool proof, make sure that the design time names of the tasks within a given process model are unique. And yes, this gives you the desired task&amp;#39;s id.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/32946?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 19:57:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54525950-4963-43ff-90da-0202ff9b115f</guid><dc:creator>raghunandanj3904</dc:creator><description>Thanks @sikhivahan and @mohammaed. I suppose we can use fn!getprocesstaskid() for each task in a process model when we want to send email (as a parallel node). This will return the current active task&amp;#39;s ID??&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/32943?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 19:51:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a70df6d8-080c-4f05-b89a-536967c92e35</guid><dc:creator>sikhivahans</dc:creator><description>@raghunandanc There is a plugin by name 'Get Process Task Id' at http://bit.ly/292HgJl which contains a function by name 'getprocesstaskid'.&lt;br /&gt;&lt;br /&gt;I personally opine that fn!getprocesstaskid() is of much use when we don't want to go with creation of report and querying it thereafter. Because fn!getprocesstaskid() has the capability to return the task id based on the process id and design/runtime name of the task which will be accurate provided if the design time task name/runtime name is unique.&lt;br /&gt;&lt;br /&gt;Afaik, fn!gettaskidforactiveprocess() from 'Task Smart Services Plug-in' might not be a great option when the process has got more than one active task(because the function might return more than one task id in this case) as we only need one particular task id to include in the email.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the taskId of task being assigned</title><link>https://community.appian.com/thread/32941?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 19:30:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18b6305c-bdba-49f0-a933-95b2dd337eca</guid><dc:creator>mohammedz</dc:creator><description>@raghu&lt;br /&gt;&lt;br /&gt;There is a function like gettaskidforactiveprocess something this ...using this function if u pass process I'd of any process it will return active taskid associated with particular process... in the process you get data using script task and set a email node to send a task link &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is a way we can neglect task report&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>