I'm currently adding the URL except the description is an ugly link.
I would like to add the description to the URL in a links list on sharepoint online.
My current code to add a new item from an Azure Worker role is as follows :
using (ClientContext ctx = new ClientContext(cmdSpoSite))
{
ctx.ExecutingWebRequest += new EventHandler<WebRequestEventArgs>(ctx_ExecutingWebRequest);
if (ctx != null)
{
List oList = ... // List data etc
oListItem["Title"] = System.Guid.NewGuid().ToString();
oListItem["URL"] = url;
// Adding the URL here but how do I change the description?
oListItem.Update();
ctx.ExecuteQuery();
}
}
The description as seen from the sharepoint list:

Edit
FieldUrlValue _url = new FieldUrlValue();
_url.Url = "http://www.google.com";
_url.Description = "Google";
oListItem["URL"] = _url;