SharePoint development Training

SharePoint Designer 2010 Workflow Email Link To Edit Item or Display Item

sharepoint 2010 workflow examples

This SharePoint 2010 workflow tutorial explains how we can send a link to edit or display list item in SharePoint designer 2010 workflow email.

Here my requirement is Whenever an item will be added to the list item, then an email will go to some specified user and the email should contain a link to view or edit the item. Once click on that the list item should open.


For this, I have created a workflow using SharePoint designer 2010.

Here if you will try to use URL Path of the Current Item then it will not work.

So follow below steps to achieve:

First Approach:

First of all, create the workflow and then Add an action as “Send an Email”. In that action click on “these users” and it will open the “Define E-mail Message” dialog box. There click on the Hyperlink symbol (highlighted in yellow) as shown in the fig below:

SharePoint Designer 2010 Workflow Email Link To Edit Item or Display Item
SharePoint Designer 2010 Workflow Email Link To Edit Item or Display Item

This will open the Edit HyperLink dialog box. There is the “Text to display” write what you want to show, here I am putting “Click Here”. In the Address click on fx as shown in the fig below:

sharepoint 2010 approval workflow examples
SharePoint 2010 approval workflow examples

That will open the lookup for a String dialog box. There change the Data source to “Workflow Context” and Field from source to Current Item URL as shown in the fig below:

how to create a workflow in sharepoint 2010
how to create a workflow in SharePoint 2010

Now run the workflow and check the email when you will click in the link, it will open the list in Display mode. And the URL will come like below:

https://Hello.sharepoint.com/teams/MyTestSite/Lists/MyList/DispForm.aspx?ID=1

2nd Approach:
I have one requirement to open the item in Edit mode and you can follow this approach if you want. But the limitation of this approach is, here the URL is constant. Follow the below steps:

First of all, create the workflow and then Add an action as “Send an Email”. In that action click on “these users” and it will open the “Define E-mail Message” dialog box. There click on the Hyperlink symbol (highlighted in yellow) as shown in the fig below:

sharepoint designer workflow
SharePoint designer workflow

This will open the Edit HyperLink dialog box, then click on … as shown in the fig below:

sharepoint 2010 workflow templates
SharePoint 2010 workflow templates

This will open the StringBuilder dialog box. Here Put the URL like below and then click on Add or Change Lookup.

Edit URL: https://Hello.sharepoint.com/teams/MyTestSite/Lists/MyList/EditForm.aspx?ID=
Display URL: https://Hello.sharepoint.com/teams/MyTestSite/Lists/MyList/DispForm.aspx?ID=

sharepoint 2010 workflow tutorial pdf
SharePoint 2010 workflow tutorial pdf

This will open the Lookup for String dialog box. Here choose Data source as Current Item and Field from source as ID. and click on OK as shown in the fig below:

sharepoint 2010 workflow examples
sharepoint 2010 workflow examples

Now the URL should be like below:

Edit URL: https://Hello.sharepoint.com/teams/MyTestSite/Lists/MyList/EditForm.aspx?ID=[%CurrentItem:ID%]
Display URL: https://Hello.sharepoint.com/teams/MyTestSite/Lists/MyList/DispForm.aspx?ID=[%CurrentItem:ID%]

SharePoint Designer 2010 Workflow Email Link To Edit Item or Display Item
SharePoint Designer 2010 Workflow Email Link To Edit Item or Display Item

You may like following SharePoint workflow tutorials:


Now you can publish the URL and it should work. But here if you try to deploy the workflow into different site or list then you need to open the workflow and change the URL.

In this way, the form can be opened in Display mode as well as Edit mode.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →