Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
3  
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

2 Answers 2

up vote 7 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

Your Answer

 
discard

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.