0

I have links in a SharePoint Online site page that I would like to retrieve and modify from within a C# application. I have been successful in using the SharePointPnPCoreOnline NuGet package to change links within a ClientSideText object, but I am stuck when I try to do the same with a ClientSideWebPart object. I can read the HTML (via the HtmlPropertiesData property) but I can't update it because it is a read-only property.

Any suggestions on how this can be done?

  • I havent tried it, but can you use GetPublicInstancePropertyValue and SetPublicInstancePropertyValue method to get the HTML content and update the link and set it back? – ThinkB4Code Jun 5 at 22:49
  • I tried, but the SetPublicInstancePropertyValue method threw an exception "Property set method not found". – Steve Jun 6 at 17:43
  • Is there another way to do what I am asking? ...possibly by not using the SharePoint PnP Core library? – Steve Jun 24 at 18:30
  • Can you let me know, what you already have and what are trying to achieve using code? Maybe I can figure out another way or workaround. – ThinkB4Code Jun 24 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.