SharePoint Designer 2013 Rest API Set URL/Hyperlink Field
I’ve been working a lot lately with the SharePoint REST API and the “Call a Web Service” Action in SharePoint Designer.
Like a lot of things with Microsoft, I found that the REST API is awesome, however, it makes certain things overly complicated to do 🙂 One of the things is setting a Hyperlink (URL) Field Value in a SharePoint list via the REST API. It wasn’t working for me and I couldn’t find much documentation on this at all so I thought I’d blog about it.
Here was my solution to set a Hyperlink field value in a SharePoint Designer Workflow calling the REST API:
1. First, you need to Create a “Build Dictionary” action and add the following to construct the metadata section of the request for your URL Item:
That’s it for this Dictionary Item.
2. Now, create a new “Build Dictionary” action and add the following items to create the URL Field Dictionary:
Value: The Metadata Dictionary Item you created above
Value: Insert your URL’s description here
Value: Insert your URL here
3. Ok so now you should have a URL Field Dictionary object that you can call in your Dictionary item that is creating your List Item. Just add an Item with your column name of type Dictionary and reference the Dictionary that we just created.