1 min read
SharePointSharePoint DesignerSharePoint Designer 2010Workflows

SharePoint Workflows: Embedding Item HyperLinks in Emails

For the first time I have had to create a workflow against a calendar item, previously the workflows I have been writing have been against documents or InfoPath forms.

A reasonably common occurence in these workflows has been to send an email out to users which would typically include a link to the document.  Up to now I have been using the Encoded Absolute URL field to embed the hyperlink and this has worked fine.  However this did not produce the effect I was expecting when the workflow was linked with a list item.

The link I was getting was being formatted something like this http://localhost/sharepoint/home/Lists/listName/915_.000 which is not a valid URL.

To work around this I found that I had to build up the URL using HTML like this <a href=’http://localhost/sharepoint/home/Lists/listName/DispForm.aspx?ID=%5B%CurrentItem:ID%%5D’>Click Here</a>

There is nothing like a bit of consistency to brighten my day!

Want more cloud insights? Listen to Cloudy with a Chance of Insights podcast:

Spotify | YouTube | Apple Podcasts

Like this article?

Comments

Richard Hogan

Richard Hogan

Author & Host

Richard is a Microsoft-focused architect and consultant with deep expertise in Azure, Microsoft 365, cybersecurity, and enterprise cloud migration. He is the founder of The Microsoft Cloud Blog and co-host of the Cloudy with a Chance of Insights podcast. All views expressed are his own.

You might also like

In-depth cloud tech discussions from Microsoft experts.

Expert insights on Microsoft Azure, cloud architecture, and enterprise technology.