I’m encountering an issue when trying to post a hyperlink to a SharePoint list using Microsoft Graph within UiPath. I’m trying to create a new list item with a field type ‘Hyperlink or Picture’, but my requests are consistently met with a BadRequest error, indicating that the format of my hyperlink is not recognized.
Here’s what I’ve tried:
I’m using a Dictionary(Of String, Object) in VB.NET to construct the JSON payload for the Microsoft Graph API request.
The hyperlink field is formatted as a dictionary with Url and Description keys:
New System.Collections.Generic.Dictionary(Of String, Object) From { {"URLLink", New With { Key .Url = "https://google.com", Key .Description = "Google" }}}
I’ve verified that the internal names of the SharePoint columns are correctly used.
The authentication process and setting of the access token in the HTTP client’s default request headers are functioning correctly.
New System.Collections.Generic.Dictionary(Of String, Object) From { {"URLLink", New System.Collections.Generic.Dictionary(Of String, String) From { {"Url":"https://google.com"}, {"Description":"Google"}}}}