SharePoint Hyperlink in Workflow

Task

To use a workflow to populate a Hyperlink field with a URL and Display Text to click on. This is using a 2013 workflow on SharePoint Online.

Solution

SharePoint Designer
From within SharePoint Designer:

Create a variable and name it

Set the Value
When setting the value click the ellipsis “…” to use the string builder.
We are going to make a simple link to Google, but you can make it as complex as you like.

https://www.google.com/, Google

3-4-2019 9-46-24 AM

The Important part here is the comma, that tells it to set the link to the URL on the left of the comma and the display text to be the text to the right of the comma.

Update Item
Now add the Update item step:
3-4-2019 9-54-34 AM

Now set the Hyperlink in the list by clicking the this list link:

  1. Click Add…
  2. Set the column with the hyperlink, in this list its called Hyperlink Test.
  3. Click the ƒx button.
  4. Set the Data source: to Workflow Variables and Parameters.
  5. Set the Field from source: to the variable you just made, TheLink in this example.
  6. Click OK.
  7. Click OK.
  8. Click OK.

3-4-2019 9-52-08 AM

Now we will end the Workflow:

3-4-2019 10-06-01 AM

Time to test:
NOTE: I have this workflow run when an item is created/modified/manually.

3-4-2019 10-07-35 AM

Worked Perfectly!
3-4-2019 10-09-31 AM

Done!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.