<?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>Different tp!id and task id in Tempo</title><link>https://community.appian.com/discussions/f/process/10942/different-tp-id-and-task-id-in-tempo</link><description>Hello, 
 I&amp;#39;m using escallations in user input task for sending alert message. In this alert message I would like to send URL to concrete task and i am building this URL in expression like this: 
 =&amp;quot;http://xxxxx.com/suite/tempo/tasks/task&amp;quot;&amp;amp;tp!id 
 Problem</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Different tp!id and task id in Tempo</title><link>https://community.appian.com/thread/64422?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:13:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3172574-61a2-4868-94a7-0ce8b78f7363</guid><dc:creator>amitb0004</dc:creator><description>&lt;p&gt;Hi erikm192,&lt;/p&gt;
&lt;p&gt;if you want to bind User Input task id along with URl follow below steps, it will work definitely&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/5611.task-IdUp.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/5611.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: Different tp!id and task id in Tempo</title><link>https://community.appian.com/thread/47934?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2017 14:20:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c52dd4fc-d042-49a6-9983-8030d9c411bf</guid><dc:creator>Shyam Bommakanti</dc:creator><description>Think of escalation is of it&amp;#39;s own task/node, outside to context of the current task. When you say tp!display on the escalation it return the name of escalation. For the same reason you are not able to use tp!id on the escalation. Use the task name &amp;quot;Review&amp;quot; or similar as how you were using for testing the rule!FI_getTaskId.&lt;br /&gt;
&lt;br /&gt;
For debugging you can send out alert/email from the escalation with tp!display, tp!id to see the runtime values&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Different tp!id and task id in Tempo</title><link>https://community.appian.com/thread/47929?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2017 08:24:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e798cc92-8980-4672-bbb6-a7db44971deb</guid><dc:creator>erikm192</dc:creator><description>Thanks but it behaves somehow weird. When i call this function from expression rule it works perfectly and returns task ID:&lt;br /&gt;
rule inputs:&lt;br /&gt;
 processId = 536871711 (got it from process model)&lt;br /&gt;
 taskName= &amp;quot;Review&amp;quot;&lt;br /&gt;
expression:&lt;br /&gt;
 getprocesstaskid(&lt;br /&gt;
   processId: ri!processId,&lt;br /&gt;
   taskName: ri!taskName,&lt;br /&gt;
   isDesignTimeName: false&lt;br /&gt;
 )&lt;br /&gt;
returns 536882036&lt;br /&gt;
&lt;br /&gt;
But problem is when i want to call this rule from process model in escallations when i am building alert message. This is what i put into email subject expression:&lt;br /&gt;
=&amp;quot;Task URL: &lt;a href="https://xxxxxxxxx.appiancloud.com/suite/tempo/tasks/task/&amp;quot;&amp;amp;rule!FI_getTaskId("&gt;xxxxxxxxx.appiancloud.com/.../&amp;quot;&amp;amp;rule!FI_getTaskId(&lt;/a&gt;&lt;br /&gt;
processId: pp!id,&lt;br /&gt;
taskName: tp!display&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Received email subject looks like this:&lt;br /&gt;
Task URL: &lt;a href="https://xxxxxxxxx.appiancloud.com/suite/tempo/tasks/task/"&gt;xxxxxxxxx.appiancloud.com/.../&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
TaskId is missing at the end. Do you know what am i doing wrong?&lt;br /&gt;
Thank again&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Different tp!id and task id in Tempo</title><link>https://community.appian.com/thread/47910?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 13:56:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26b7a164-2059-45e4-81ac-254cfe8004c7</guid><dc:creator>Shyam Bommakanti</dc:creator><description>As other practitioner suggested use getprocesstaskid, it&amp;#39;s in this shared component: &lt;a href="https://forum.appian.com/suite/sites/shared-components/page/shared-components/record/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: Different tp!id and task id in Tempo</title><link>https://community.appian.com/thread/47907?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 13:48:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3b0f751-603d-47a3-9e43-76fc8793541b</guid><dc:creator>Thenmozhi Mohanakrishnan</dc:creator><description>You can use getprocesstaskid function to get the current task id.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>