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
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
- VesaJuvonenMar 19, 2018
Microsoft
This property is not indeed exposed from the List using CSOM or REST. ComplianceTag can be found at the ListItem level, but that's not really what's being looked here. Basically, that means that there's no API to currently set this property for the List object.