Wednesday, February 23, 2022

SharePoint CSOM get absolute url from FileRef

 This one liner can return absolute url of an item using its FileRef property

var absoluteUrl = new Uri(context.Url).GetLeftPart(UriPartial.Authority) + serverRelativeUrl;



No comments:

Regex obfuscate email

 Use this code in C# to obfuscate email using regex // Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compile...