In this SharePoint workflow tutorial, how we can Send Task Form URL inside the Email in SharePoint Designer 2013 Workflow. And also we will discuss we can open directly task list edit form in SharePoint 2013/Online workflow.
Open directly workflow task list edit form in SharePoint 2013/Online task list
Recently we were working in visual studio 2015 workflow for SharePoint online site. Here we had created a few tasks, and our requirement was that if the user clicks directly from the email from the Approve/Reject link then directly it should open the Edit form of the task.
We were using the below workflow variables to generate the Approve\Reject link.
<a href='%TaskSpecial: TaskUrl%'><b>Approve / Reject</b></a>
The above link will open the display form when any user clicks on the Approve/Reject link.
Let us say our task list display form URL is like below:
One solution we can do is we can write the below code inside a script editor web part and put inside the particular task list’s display form.
Or you can also put the below code inside the master page.
Now, whenever the user clicks on Approve/Reject button from the email body it will open the Edit form directly.
But one problem you will face is even if you try to open the Display form in the task list itself it will also redirect to the Edit form. So the user will not be able to see the Display form ever.
To solve the issue you can pass some query string parameter in the link in the email approve/reject link and then you can check if the above string contains the particular string then only you redirect.
Basically, you can do some string operation to handle that.
Send Task Form URL inside the Email in SharePoint Designer 2013 Workflow
In this SharePoint tutorial, we will discuss how to send task form URL inside the Email in SharePoint designer 2013 workflow in SharePoint Online/2013/2016.
We can add task form URL inside in SharePoint 2013 designer workflow email. In the designer workflow, we wanted to send the task item URL in the email body so that the user can click on that and open the task form.
You can use the below variable in the email body which will generate the task list form URL.
You can also send like below,
<a href="http://Site URL/Lists/Tasks/EditForm.aspx?ID=[Item ID]">Edit item</a>
Once the user approves/rejects, the user will be redirected to the task list. But sometimes you might get the requirement to redirect to the source list instead of the task list.
In those requirements you can append the Source parameter like below:
You may like following SharePoint designer workflow tutorials:
- SharePoint designer workflow: Create Laptop Request Approval Workflow
- SharePoint Designer Workflow Declare item as a record
- SharePoint designer workflow examples: Steps to create a Leave Request SharePoint designer workflow in SharePoint Online
- Copy Document SharePoint Designer 2013 Workflow Action
- SharePoint designer 2013 Workflow: Assign task to group using Assign a task workflow action
- SharePoint Designer 2013 Workflow: Create List Item Action with Example
- SharePoint Designer 2013 Workflow: Do Calculation Action Example
- SharePoint designer 2013 Workflow Condition: person is a valid SharePoint user with Example
- Errors were found when compiling the workflow. The workflow files were saved but cannot be run error in SharePoint online designer workflow
- Deploy SharePoint 2013 designer workflow into production in SharePoint online
- SharePoint Online Create Workflow History List using PowerShell or using SharePoint Designer 2013
- SharePoint 2013 Workflow Impersonation step missing in Designer
- failed to load this workflow to correct this problem restart sharepoint designer 2013
Hope this will be helpful to send Edit Task Form URL inside the Email in SharePoint Designer 2013 Workflow.
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 EnjoySharePoint.com