Forum Discussion
Configure default Office 365 Label for library
- Mar 19, 2018
I added a user voice for this: https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/33679303-support-compliancetag-on-the-csom-list-object
Paul Hunt - Cimares feel free to upvote :)
We're currently implementing a DMS too and this was also a requirement for us. I've checked the possibilities last week. Unfortonately, CSOM currently doesn't provide a way to set this property at the library-level (only at Item-level like you said). I've noticed (after configuring though the browser) the property is ultimately stored in the List's Schema XML but CSOM doesn't provide a way to modify this Schema directly.
I bet for now your only option to modify this setting in an automated way, would be through the HTTP Remote Operation pattern described in VesaJuvonen's blog below:
https://blogs.msdn.microsoft.com/vesku/2013/11/04/ftc-to-cam-advance-http-remote-operations-for-sp2013/
And also:
https://www.youtube.com/watch?v=eoLIDCZgMH4
- Mikael SvensonMar 14, 2018Iron ContributorHi,
Where in the list schema are you seeing this? I cannot see any changes to the schemaxml after setting the value back and forth.- paulpaschaMar 14, 2018Bronze Contributor
After changing the setting at the library-level I noticed a ComplianceTag attribute appearing in the SchemaXml
- Mikael SvensonMar 14, 2018Iron Contributor
Found it now :) Doesn't help though. Guess the List CSOM object have to expose the ComplianceTag property. Or expose a method in Microsoft.Office.Client.Policy for setting this. cc VesaJuvonen
- Mar 12, 2018I was hoping to avoid screen scraping if possible but it was going to be my fall back option. It’s just a little messy and prone to issues.
Hopefully a fully supported option will be added to csom and other methods soon.
Paul.