<?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 Task ID of a User Input Task</title><link>https://community.appian.com/discussions/f/process/9611/how-to-get-task-id-of-a-user-input-task</link><description>Hi Team, I am assigning a &amp;#39;User Input Task&amp;quot; to some specified user. Once the task is assigned ,is it possible to get the &amp;quot;TASK ID&amp;quot; corresponding to this assigned task. I need to run the a!completeTask with these ID&amp;#39;s at a later point of time to clean</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/75379?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 08:52:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97bb2a8a-6850-4931-9eb6-d7bca3784baf</guid><dc:creator>heidergger</dc:creator><description>&lt;p&gt;Hi Amitb,&lt;/p&gt;
&lt;p&gt;I try your idea but it throw the error, i think that my error is report, i upload a document .arf, give me next message:&lt;br /&gt;An error occurred while evaluating expression: =concatenate(&amp;quot;&amp;lt;p&amp;gt;&amp;quot;,&amp;quot;Esta es una prueba: &amp;quot;&amp;amp;a!queryProcessAnalytics(&lt;br /&gt;report:cons!CMS_TASK,&lt;br /&gt;contextUsers: &amp;quot;user_name&amp;quot;).data.dp0[1],&amp;quot;&amp;lt;/p&amp;gt;&amp;quot;) (Expression evaluation error at function &amp;#39;concatenate&amp;#39; parameter 2: Invalid index: Cannot index property &amp;#39;dp0&amp;#39; of type Text into null value of type List of Variant) (Data Inputs)&lt;/p&gt;
&lt;p&gt;Your aswer previous helped me so much to understand the task id. Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/64425?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:29:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f433c7c-7518-4ef4-af42-660721acf262</guid><dc:creator>amitb0004</dc:creator><description>Hi paulc919,&lt;br /&gt;
i have updated the above answer please check&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/64424?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:25:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2de08a35-c66a-4ba0-9130-33554a5afa4c</guid><dc:creator>paulc919</dc:creator><description>If a task hasn&amp;#39;t been completed - is it completely safe to assume they have been done to clean up the tasks ? Wouldn&amp;#39;t it be better to use escalations or exceptions ? I would have thought tidying up tasks would be a last resort activity.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/64418?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 12:56:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18e97fe8-b140-4fb1-8d63-619805ee72d3</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hello georgej,&lt;/p&gt;
&lt;p&gt;We can take Task Id along with User Input Task in following way&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/8360.task-IdUp.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/8360.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 Task ID of a User Input Task</title><link>https://community.appian.com/thread/42212?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 20:15:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db4f176c-e22b-4a05-8daf-d2d374800c07</guid><dc:creator>payal31</dc:creator><description>If there is one active task , then you can get Task Id by using this function getactivetaskidsforprocess() &lt;br /&gt;Please refer this link : -&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lIBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhe1E6XnF-q8L5popjLxeo-B_X1DFA-B8/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But if there are two active task parallely , then you can get Task Id by using this function getprocesstaskid()&lt;br /&gt;Please refer this link :- &lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhu2uLnMhlY8L-xlAVXJKd704jFVzQ6YF6w/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/42133?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 14:26:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:922bdc35-2f6d-46ab-a10e-3ef70c5cb2d9</guid><dc:creator>pratikshaj7871</dc:creator><description>You can get the active task ids using custom function [ getactivetaskidsforprocess() ] available in shared component.&lt;br /&gt;Here is the link to the shared component&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lIBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhe1E6XnF-q8L5popjLxeo-B_X1DFA-B8/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/42130?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 12:32:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b07327b3-f955-4284-99d0-db09f502c891</guid><dc:creator>TJ</dc:creator><description>OR you can use getprocesstaskid() function available in &amp;#39;Shared Component&amp;#39;.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Get Task ID of a User Input Task</title><link>https://community.appian.com/thread/42127?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 09:14:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70084a9e-b284-40b4-a6d6-8df00fc72bfd</guid><dc:creator>sagarl511</dc:creator><description>@georgej - You can create a task report on process models or process instances and call it using queryprocessanalystics by filtering out by process id or any other filter parameter as per requirement.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>