Skip to content

Commit 8fdedad

Browse files
committed
Corrected file ___location
Moved from add-ins to api
1 parent a5a57f1 commit 8fdedad

File tree

3 files changed

+18
-33
lines changed

3 files changed

+18
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.Ds_Store
2+
docs/sp-add-ins/csom-methods-for-applying-retention-labels.md
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2+
title: CSOM methods for applying retention labels
3+
description: CSOM methods are available to apply (set) a retention label (ComplianceTag) on one or many items (ListItems) in SharePoint.
24
author: kyracatwork
35
ms.author: kyrachurney
46
ms.date: 4/18/2023
5-
title: CSOM methods for applying retention labels
6-
description: CSOM methods are available to apply (set) a retention label (ComplianceTag) on one or many items (ListItems) in SharePoint.
7+
ms.prod: sharepoint
78
---
89

910
# CSOM methods for applying retention labels (setting ComplianceTags)
1011

11-
Retention labels let you apply retention settings for governance control at the item level, and are part of the Microsoft Purview compliance solutions. [Learn more about retention labels.](/microsoft-365/compliance/retention?view=o365-worldwide#retention-labels)
12+
Retention labels let you apply retention settings for governance control at the item level, and are part of the Microsoft Purview compliance solutions. [Learn more about retention labels.](/microsoft-365/compliance/retention#retention-labels)
1213

1314
Retention labels may classify contents as records, which place restrictions on what actions are allowed or blocked. [Learn more about declaring records by using retention labels](/microsoft-365/compliance/declare-records)
1415

@@ -21,7 +22,6 @@ CSOM methods are available to apply (set) a retention label (ComplianceTag) on o
2122

2223
This method can be used to set a ComplianceTag on one or many ListItems. It is strongly recommended to use this method for this purpose.
2324

24-
2525
```c#
2626
public List<int> SetComplianceTagOnBulkItems(
2727
List<int> itemIds,
@@ -31,13 +31,10 @@ public List<int> SetComplianceTagOnBulkItems(
3131

3232
### Parameters
3333

34-
'List' [Int](/en-us/dotnet/api/system.int32)
35-
36-
'ItemsIds' [String](/dotnet/api/system.string)
37-
38-
'ListURL' [String](/dotnet/api/system.string)
39-
40-
'ComplianceTagValue' [String](/dotnet/api/system.string)
34+
- 'List' [Int](/en-us/dotnet/api/system.int32)
35+
- 'ItemsIds' [String](/dotnet/api/system.string)
36+
- 'ListURL' [String](/dotnet/api/system.string)
37+
- 'ComplianceTagValue' [String](/dotnet/api/system.string)
4138

4239
Attribute [RemoteAttribute](/dotnet/api/microsoft.sharepoint.client.remoteattribute)
4340

@@ -50,27 +47,14 @@ Attribute [RemoteAttribute](/dotnet/api/microsoft.sharepoint.client.remoteattrib
5047
## Other
5148

5249
> [!NOTE]
53-
It is strongly recommended to use SetComplianceTagOnBulkItems instead of these methods.
50+
> It is strongly recommended to use SetComplianceTagOnBulkItems instead of these methods.
5451
5552
The following methods are also available, but are no longer updated and may be subject to deprecation in the future. If you are using these methods, we strongly recommend use of the SetComplianceTagOnBulkItems method instead.
5653

57-
* [SetComplianceTag](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetag?view=sharepoint-csom)
58-
* [SetComplianceTagWithExplicitMetaInfo](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithexplicitmetainfo?view=sharepoint-csom)
59-
* [SetComplianceTagWithExplicitMetasUpdate](https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithexplicitmetasupdate?view=sharepoint-csom)
60-
* [SetComplianceTagWithHold](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithhold?view=sharepoint-csom)
61-
* [SetComplianceTagWithMetaInfo](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithmetainfo?view=sharepoint-csomtnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithhold?view=sharepoint-csom)
62-
* [SetComplianceTagWithNoHold](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithnohold?view=sharepoint-csom)
63-
* [SetComplianceTagWithRecord](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithrecord?view=sharepoint-csom)
64-
65-
66-
67-
68-
69-
70-
71-
72-
73-
74-
75-
76-
54+
* [SetComplianceTag](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetag)
55+
* [SetComplianceTagWithExplicitMetaInfo](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithexplicitmetasupdate)
56+
* [SetComplianceTagWithExplicitMetasUpdate](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithexplicitmetasupdate)
57+
* [SetComplianceTagWithHold](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithhold)
58+
* [SetComplianceTagWithMetaInfo](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithmetainfo)
59+
* [SetComplianceTagWithNoHold](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithnohold)
60+
* [SetComplianceTagWithRecord](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithrecord)

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@
20842084
- name: Application Lifecycle Management (ALM) APIs
20852085
href: apis/alm-api-for-spfx-add-ins.md
20862086
- name: CSOM methods for applying retention labels
2087-
href: apis/CSOM-methods-for-applying-retention-labels.md
2087+
href: apis/csom-methods-for-applying-retention-labels.md
20882088
- name: SharePoint Add-in Management APIs
20892089
href: apis/addin-management-apis.md
20902090
- name: Microsoft 365 Copy and Move API

0 commit comments

Comments
 (0)