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 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

1 Reply

  • paulpascha's avatar
    paulpascha
    Bronze Contributor

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

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

Resources