Forum Discussion
Manpreet bhatia
Nov 30, 2017Copper Contributor
Apply Labels on SharePoint Library item through code
Hi All,
I need to apply a SCC label on document item through coding. I am able to get GetAvailableTagsForSite through CSOM code but not able to apply a label on library item.
Any example or document which help me.
You can set the label by using ListItem.SetComplianceTag method:
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.listitem.setcompliancetag.aspx
- paulpaschaBronze Contributor
You can set the label by using ListItem.SetComplianceTag method:
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.listitem.setcompliancetag.aspx