Get Task ID to bind with URL and send that URL to Approval's Email address to notify it

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 returns previous Task ID which is useless to me.

 Image(B)

 

What i tried,

We can get Task Link when we Checked  "Notify......." option in Input Task Properties but we can't change that Email format  or that default email template.

So i design my own Email Template and Included it process model as shown in Image(A), but "tp!id" in Task Properties as shown in Image(B) gives me previous Task ID.

And don't want to used default email notification alert for Task whose email format is fixed and non editable.   

 

 So how can i Get the Latest Task ID, so i can used it in my "Email Template as Approval Link" (bind Task Id with URL, so Approval can directly redirect to that Task).

  Discussion posts and replies are publicly visible

Parents Reply
  • Here's a pattern that will guarantee that the Task as been assigned before you attempt to retrieve the Task Id with the process analytics:

    This uses an immediate Escalation on the Task (i.e. the wait time is 0 minutes) and uses the 'Send Message' 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'll need to ensure you send the message to the specified Process Instance by setting the 'DestinationProcessID' (this is best practice anyway!)

Children