Forum Discussion

Manpreet bhatia's avatar
Manpreet bhatia
Copper Contributor
Nov 30, 2017
Solved

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...
  • paulpascha's avatar
    Mar 05, 2018

    You can set the label by using ListItem.SetComplianceTag method:

    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.listitem.setcompliancetag.aspx

Resources