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

Is it possible to go to the edit view of an sharepoint 2010 list item directly from email? I have a workflow that sends an email to a user to edit a list item. The link -at this time- takes them to the list. I would like for the link to take them to the edit view of that item. thanks,

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Yes, you'd just need to craft a hyperlink to the edit form in the email body.

<a href="http://your.domain.com/sites/sitecollection/Lists/Tasks/EditForm.aspx?ID=[Add current item id here]">Edit item</a>.

Use the SPD interface to add in a workflow variable for the current item ID or task ID in the URL above where the [] are.

share|improve this answer

Use Sharepoint Designer:

In the body of the form "send an e-mail", find 'edit hyperlink' button in the upper right corner of the message.

for field address, click lookup for string or 'fx'

in Data Source, select “Workflow Context”. for field from source, select "Current Item URL".

Now Save, publish and test.

share|improve this answer
2  
Nice find! I didn't know about "Workflow Context"->"Current Item URL". Way beter than creating the url by hand (as PirateEric suggest). –  Dribbel Dec 19 '12 at 9:58
    
Unfortunately it doesn't answer the question, which is to link to the edit form. –  Christophe Dec 12 '13 at 22:01
    
Ricardo Work Context : Current Item URL didn't work for me. It creates a hyperlink value of "list/listname/12.000" Instead of a URL. Am I missing something? –  Angela French Jun 19 at 21:24

you just set property in CreatTask

enter image description here

than after you can access listitemid like below

 int i = InvoiceApproverTask.TaskItemId;

string EditItemURL = workflowProperties.Web.Url.ToString() + "/" + workflowProperties.TaskList.RootFolder.Url + "/" + "EditForm.aspx?ID="+i;

Hops its helps someone..

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.