<?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 can I get taskId from processId?</title><link>https://community.appian.com/discussions/f/user-interface/6630/how-can-i-get-taskid-from-processid</link><description>How can I get taskId from processId? I have published the process model as a web service, which returns me a process id. I want to get a taskid, so that I can make use of task id to start the embedded html. 
 OriginalPostID-187492 
 OriginalPostID-18</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I get taskId from processId?</title><link>https://community.appian.com/thread/64420?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:04:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7378a0bc-e434-4ac5-b8f2-b653fb7b92c3</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hi ishaanim,&lt;/p&gt;
&lt;p&gt;Do you need task id, when you&amp;nbsp; assigned User Input Task in process model?&lt;/p&gt;
&lt;p&gt;if yes follow following&amp;nbsp;steps&amp;gt;&amp;gt;&amp;gt;&amp;gt;&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/0336.task-IdUp.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/0336.task-IdUp.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this way you will get the Task Id and used it where you want used it within process model&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get taskId from processId?</title><link>https://community.appian.com/thread/31091?ContentTypeID=1</link><pubDate>Sat, 14 May 2016 16:54:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfd2fd16-b042-4705-a0e2-d926a372ff3c</guid><dc:creator>samiullahm</dc:creator><description>From Task Properties we can get &amp;quot;id&amp;quot; value i.e. TaskId. We can store it in any PV and use Appian servlet plug-in to get the value of PV or retrieve from WebAPI to get active task details. If your requirement is to just test embedded task in HTML with any task id then create a new filter for Task Id on Process details.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get taskId from processId?</title><link>https://community.appian.com/thread/29169?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2016 18:13:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eab6d7af-bc1b-4e26-af5e-459bb10341d5</guid><dc:creator>ryanh</dc:creator><description>At least for user forms/tasks you can run a process or task report and get the task id.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get taskId from processId?</title><link>https://community.appian.com/thread/26109?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 11:27:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:deb181a0-4d08-430d-bb3d-6e6e350e3bfc</guid><dc:creator>ishaanim</dc:creator><description>I am unable to find any method which will return me a taskId. Any help?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get taskId from processId?</title><link>https://community.appian.com/thread/26071?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2016 18:20:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c0c99c1-55e5-427c-835d-6865e036f769</guid><dc:creator>ishaanim</dc:creator><description>Thanks Jenny!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get taskId from processId?</title><link>https://community.appian.com/thread/26070?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2016 18:14:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b69475b-83ba-4758-a325-2aacb882f43a</guid><dc:creator>Jennifer Durina</dc:creator><description>You&amp;#39;ll only be able to get the processId back as a response from starting a process model by a web service, but you can use a Web API to host a service that exposes a taskId. In the body of the httpResponse in the Web API you can use queryProcessAnalytics and a system report to expose the taskId for a certain task within your process based on the processId.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.11/Web_APIs.html"&gt;forum.appian.com/.../Web_APIs.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>