Sharepoint - how to send a link to the edit view of a list item from a workflow
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.
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.
The following solution worked for me:
- In the body of the WorkFlow email, position yourself where you want the link to go
- Then click on the
Edit Hyperlink
button in the top right of the window - In the address, paste in the URL to your
EditForm
for example:https://domain.sharepoint.com/Lists/mylistname/EditForm.aspx?ID=
- Then select the string builder button (...) to open the string builder window.
- In the string builder window position your cursor at the end of the line (just after ID=) then press the
"Add or Change Lookup"
button. - Select
Data Source = "Current Item"
and Field fromsource = "ID"
Then ok that and save and publish.