Forum Discussion
Brian Jacobsen
Feb 08, 2018Copper Contributor
Apply default compliance label to document library from code (SPO)
Targeting Office 365 / SharePoint Online, we are creating labels in the Office 365 compliance center, and would like to assign these as default labels in document libraries through code (e.g. CSOM/RE...
- Feb 08, 2018Yeap, not to much information about this...have you read this: https://social.technet.microsoft.com/Forums/en-US/a0617140-5197-4908-8799-9e6021c8d70b/programmatically-apply-label-to-items-in-this-list-or-library?forum=onlineservicessharepoint
geraint james
Apr 20, 2018Brass Contributor
This was requested on https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/33679303-support-compliancetag-on-the-csom-list-object and it looks like this was included in the March 2018 SharePoint Online CSOM update. Mikael is very active in PnP, so hopefully we'll see it added there soon too....
- Brian JacobsenApr 20, 2018Copper Contributor
Perfect - thanks, hadn't seen that uservoice entry :)
/Brian