Hello I have a SP workflow question for you gurus out there.
I have a list, that among other items contains a “Submitter” field and a Status Field. I have created a workflow that sends an email to the “Submitter” when his list items “Status field” changes to approved. This is working as it should. What I need to do is in the body of the email, create a link that links to the Display Form of that Submitter’s line item. Meaning that when the email is generated, that link would automatically change based on who the submitter is, so that Submitter will be sent to his Line item. The link is not static, has to be dynamic based on the Submitter who receives it. Hope that makes sense. Thank you!
You could a link in your email as below using available workflow variables or add static content except the ID. Main idea is to get current Item’s ID and use that to build your dynamic link. Every list items’s display form will be of below format
On-Prem version : http://XXXXX/sites/XXX/Lists/XXX/DispForm.aspx?ID=1
On line version : https://XXXXX.sharepoint.com/Lists/XXX/DispForm.aspx?ID=1
Link name : Any text
Link URL : http://XXXXX/sites/XXX/Lists/XXX/DispForm.aspx?ID=1 (Assuming your on-prem , same thing applies to online except the url format}
Also, instead of static string – we can use ootb workflow context variables as below
{Current Site URL}Lists/{List Name}/DispForm.aspx?ID={ID}
If you’re already in the current item then you can use the workflow context as follows:
[%Workflow Context:Current Item URL%]
{{apimage “Hyperlink.png” “”}}