The Microsoft Cloud Blog

Expert insights on Microsoft Azure, Cloud Architecture, and Enterprise Technology

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

Loading comments...

Richard Hogan - Global Chief Architect, Microsoft Practice

Richard Hogan

Global Chief Architect, Microsoft Practice | IBM

Global Chief Architect, Microsoft Practice at IBM. 20+ years experience working at the intersection of cloud architecture, security, and emerging AI capabilities across Azure and the wider Microsoft ecosystem. Host of the Cloudy with a Chance of Insights podcast. Regular speaker at tech conferences and active contributor to the Microsoft Tech Community.

You might also like

Practical discussions on cloud engineering, architecture, and the reality behind the diagrams.

Bi-weekly reflections on cloud architecture, Azure, and the decisions teams wrestle with in practice.