SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am customizing the Email task notification message body in SharePoint Designer and need to include a link to the task. I can get all the pieces of the url except the task list id. I have:

[%Task Process:Web URL %]/_layouts/WrkTaskIP.aspxList=**?????**&ID=[%Current Task:ID%]

I've tried:

Field Data to Retrieve

Data Source: Association: Task List

Field from source: ID

Find the List Item

Field: Workflow Item ID

Value: Current Item:ID

which evaluates to an integer, not a GUID.

I also tried, Field from source: GUID, which did not evaluate to the ID of the task list.

Is there any way I can obtain the ID of the task list? I prefer not to hardcode the guid, since this workflow will be exported/imported when I promote it to production.

share|improve this question
You should add your solution as answer and accept it. :))))) – Toni Frankola Apr 27 '11 at 7:27
Thanks. I just did. Since I'm a new user the system made me wait 8 hours to post an answer to my own question. – Laurie Apr 27 '11 at 15:58
Well, I tried to accept my answer, but I must wait 2 days to do that. – Laurie Apr 27 '11 at 16:16
does NOT work in my workflow Tasks. just takes me to top level site. very frustrating. i can't find anything that works. – April Drake May 2 '13 at 1:33
up vote 8 down vote accepted

It turns out that SharePoint Designer provides the entire URL to the task, exactly what I need:

[%Current Task:Form_URN%]
share|improve this answer

The answer here did not work for me. The url that this code should generate doesn't show in the body of the email:

[%Current Task:Form_URN%]

I've also tried: [%Workflow Tasks:Form_URN%]

Both of these tags show nothing in the email body. I can get to the link if I hit the "Open this task..." button, but unfortunately it's not intuitive to the user. The 3 users I had test the workflow all came back and said they didn't see a place to approve the task. I then had to send a screenshot highlighting where the "Open this task.." button was. Doesn't MS test this stuff to make sure it's easy for the user? Why would they place the button at the top of the email where the user overlooks it as it looks like part of the UI.

share|improve this answer
You have to add the [Current Task:Form_URN%] into a link instead of adding it directly into the email body. So for example you would add a link with "Click here to approve/reject" as the link text and the [Current Task:Form_URN%] as the link location. – Peter-Ross Cuthbert Oct 29 '15 at 7:24

There is an easier workaround to send the user directly to the edit form, use a redirecting form with some simple java:

I spent ages looking for a way to get the taskID so I could send the approver directly to the form but there is no way to do it, this is the best workaround i've seen.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.