Skip to content

Commit f8addee

Browse files
authored
Merge branch 'SharePoint:main' into main
2 parents 6db58f0 + 05d758b commit f8addee

File tree

137 files changed

+3869
-5172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+3869
-5172
lines changed

.openpublishing.redirection.json

Lines changed: 102 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,104 @@
11
{
2-
"redirections": [
3-
{
4-
"source_path": "docs/apis/rest/complete-basic-operations-using-sharepoint-rest-endpoints.md",
5-
"redirect_url": "docs/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints.md",
6-
"redirect_document_id": false
7-
},
8-
{
9-
"source_path": "docs/apis/rest/determine-sharepoint-rest-service-endpoint-uris.md",
10-
"redirect_url": "docs/sp-add-ins/determine-sharepoint-rest-service-endpoint-uris",
11-
"redirect_document_id": false
12-
},
13-
{
14-
"source_path": "docs/apis/rest/get-to-know-the-sharepoint-rest-service.md",
15-
"redirect_url": "docs/sp-add-ins/get-to-know-the-sharepoint-rest-service.md",
16-
"redirect_document_id": false
17-
},
18-
{
19-
"source_path": "docs/apis/rest/make-batch-requests-with-the-rest-apis.md",
20-
"redirect_url": "docs/sp-add-ins/make-batch-requests-with-the-rest-apis.md",
21-
"redirect_document_id": false
22-
},
23-
{
24-
"source_path": "docs/apis/rest/navigate-the-sharepoint-data-structure-represented-in-the-rest-service.md",
25-
"redirect_url": "docs/sp-add-ins/navigate-the-sharepoint-data-structure-represented-in-the-rest-service.md",
26-
"redirect_document_id": false
27-
},
28-
{
29-
"source_path": "docs/apis/rest/set-custom-permissions-on-a-list-by-using-the-rest-interface.md",
30-
"redirect_url": "docs/sp-add-ins/set-custom-permissions-on-a-list-by-using-the-rest-interface.md",
31-
"redirect_document_id": false
32-
},
33-
{
34-
"source_path": "docs/apis/rest/synchronize-sharepoint-items-using-the-rest-service.md",
35-
"redirect_url": "docs/sp-add-ins/synchronize-sharepoint-items-using-the-rest-service.md",
36-
"redirect_document_id": false
37-
},
38-
{
39-
"source_path": "docs/apis/rest/upload-a-file-by-using-the-rest-api-and-jquery.md",
40-
"redirect_url": "docs/sp-add-ins/upload-a-file-by-using-the-rest-api-and-jquery.md",
41-
"redirect_document_id": false
42-
},
43-
{
44-
"source_path": "docs/apis/rest/use-odata-query-operations-in-sharepoint-rest-requests.md",
45-
"redirect_url": "docs/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests.md",
46-
"redirect_document_id": false
47-
},
48-
{
49-
"source_path": "docs/apis/rest/working-with-folders-and-files-with-rest.md",
50-
"redirect_url": "docs/sp-add-ins/working-with-folders-and-files-with-rest.md",
51-
"redirect_document_id": false
52-
},
53-
{
54-
"source_path": "docs/apis/rest/working-with-lists-and-list-items-with-rest.md",
55-
"redirect_url": "docs/sp-add-ins/working-with-lists-and-list-items-with-rest.md",
56-
"redirect_document_id": false
57-
},
58-
{
59-
"source_path": "docs/schema/index.md",
60-
"redirect_url": "docs/schema/upgrade-definition-schema.md",
61-
"redirect_document_id": false
62-
},
63-
{
64-
"source_path": "docs/sp-add-ins/add-a-custom-content-type-to-a-sharepoint-hostedsharepoint-add-in.md",
65-
"redirect_url": "docs/sp-add-ins/add-a-custom-content-type-to-a-sharepoint-hosted-sharepoint-add-in.md",
66-
"redirect_document_id": false
67-
},
68-
{
69-
"source_path": "docs/sp-add-ins/add-custom-columns-to-a-sharepoint-hostedsharepoint-add-in.md",
70-
"redirect_url": "docs/sp-add-ins/add-custom-columns-to-a-sharepoint-hosted-sharepoint-add-in.md",
71-
"redirect_document_id": false
72-
},
73-
{
74-
"source_path": "docs/spfx/web-parts/guidance/creating-team-manifest-manually-for-webpart.md",
75-
"redirect_url": "docs/spfx/deployment-spfx-teams-solutions.md",
76-
"redirect_document_id": false
77-
},
78-
{
79-
"source_path": "docs/general-development/office-365-cdn.md",
80-
"redirect_url": "/office365/enterprise/use-office-365-cdn-with-spo",
81-
"redirect_document_id": false
82-
},
83-
{
84-
"source_path": "docs/spfx/toolchain/scaffolding-projects-using-yeoman-sharepoint-generator.md",
85-
"redirect_url": "docs/spfx/yeoman-generator-for-spfx-intro.md",
86-
"redirect_document_id": false
87-
},
88-
{
89-
"source_path": "docs/spfx/office-addins-create.md",
90-
"redirect_url": "docs/spfx/release-1.14.md",
91-
"redirect_document_id": false
92-
},
93-
{
94-
"source_path": "docs/spfx/web-parts/get-started/office-addins-tutorial.md",
95-
"redirect_url": "docs/spfx/release-1.14.md",
96-
"redirect_document_id": false
97-
},
98-
{
99-
"source_path": "docs/spfx/sharepoint-2019-support.md",
100-
"redirect_url": "docs/spfx/sharepoint-2019-and-subscription-edition-support.md",
101-
"redirect_document_id": false
102-
},
103-
104-
]
105-
2+
"redirections": [
3+
{
4+
"source_path": "docs/apis/rest/complete-basic-operations-using-sharepoint-rest-endpoints.md",
5+
"redirect_url": "/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path": "docs/apis/rest/determine-sharepoint-rest-service-endpoint-uris.md",
10+
"redirect_url": "/sharepoint/dev/sp-add-ins/determine-sharepoint-rest-service-endpoint-uris",
11+
"redirect_document_id": false
12+
},
13+
{
14+
"source_path": "docs/apis/rest/get-to-know-the-sharepoint-rest-service.md",
15+
"redirect_url": "/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service",
16+
"redirect_document_id": false
17+
},
18+
{
19+
"source_path": "docs/apis/rest/make-batch-requests-with-the-rest-apis.md",
20+
"redirect_url": "/sharepoint/dev/sp-add-ins/make-batch-requests-with-the-rest-apis",
21+
"redirect_document_id": false
22+
},
23+
{
24+
"source_path": "docs/apis/rest/navigate-the-sharepoint-data-structure-represented-in-the-rest-service.md",
25+
"redirect_url": "/sharepoint/dev/sp-add-ins/navigate-the-sharepoint-data-structure-represented-in-the-rest-service",
26+
"redirect_document_id": false
27+
},
28+
{
29+
"source_path": "docs/apis/rest/set-custom-permissions-on-a-list-by-using-the-rest-interface.md",
30+
"redirect_url": "/sharepoint/dev/sp-add-ins/set-custom-permissions-on-a-list-by-using-the-rest-interface",
31+
"redirect_document_id": false
32+
},
33+
{
34+
"source_path": "docs/apis/rest/synchronize-sharepoint-items-using-the-rest-service.md",
35+
"redirect_url": "/sharepoint/dev/sp-add-ins/synchronize-sharepoint-items-using-the-rest-service",
36+
"redirect_document_id": false
37+
},
38+
{
39+
"source_path": "docs/apis/rest/upload-a-file-by-using-the-rest-api-and-jquery.md",
40+
"redirect_url": "/sharepoint/dev/sp-add-ins/upload-a-file-by-using-the-rest-api-and-jquery",
41+
"redirect_document_id": false
42+
},
43+
{
44+
"source_path": "docs/apis/rest/use-odata-query-operations-in-sharepoint-rest-requests.md",
45+
"redirect_url": "/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests",
46+
"redirect_document_id": false
47+
},
48+
{
49+
"source_path": "docs/apis/rest/working-with-folders-and-files-with-rest.md",
50+
"redirect_url": "/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest",
51+
"redirect_document_id": false
52+
},
53+
{
54+
"source_path": "docs/apis/rest/working-with-lists-and-list-items-with-rest.md",
55+
"redirect_url": "/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest",
56+
"redirect_document_id": false
57+
},
58+
{
59+
"source_path": "docs/schema/index.md",
60+
"redirect_url": "/sharepoint/dev/schema/upgrade-definition-schema",
61+
"redirect_document_id": false
62+
},
63+
{
64+
"source_path": "docs/sp-add-ins/add-a-custom-content-type-to-a-sharepoint-hostedsharepoint-add-in.md",
65+
"redirect_url": "/sharepoint/dev/sp-add-ins/add-a-custom-content-type-to-a-sharepoint-hosted-sharepoint-add-in",
66+
"redirect_document_id": false
67+
},
68+
{
69+
"source_path": "docs/sp-add-ins/add-custom-columns-to-a-sharepoint-hostedsharepoint-add-in.md",
70+
"redirect_url": "/sharepoint/dev/sp-add-ins/add-custom-columns-to-a-sharepoint-hosted-sharepoint-add-in",
71+
"redirect_document_id": false
72+
},
73+
{
74+
"source_path": "docs/spfx/web-parts/guidance/creating-team-manifest-manually-for-webpart.md",
75+
"redirect_url": "/sharepoint/dev/spfx/deployment-spfx-teams-solutions",
76+
"redirect_document_id": false
77+
},
78+
{
79+
"source_path": "docs/general-development/office-365-cdn.md",
80+
"redirect_url": "/sharepoint/dev/office365/enterprise/use-office-365-cdn-with-spo",
81+
"redirect_document_id": false
82+
},
83+
{
84+
"source_path": "docs/spfx/toolchain/scaffolding-projects-using-yeoman-sharepoint-generator.md",
85+
"redirect_url": "/sharepoint/dev/spfx/yeoman-generator-for-spfx-intro",
86+
"redirect_document_id": false
87+
},
88+
{
89+
"source_path": "docs/spfx/office-addins-create.md",
90+
"redirect_url": "/sharepoint/dev/spfx/release-1.14",
91+
"redirect_document_id": false
92+
},
93+
{
94+
"source_path": "docs/spfx/web-parts/get-started/office-addins-tutorial.md",
95+
"redirect_url": "/sharepoint/dev/spfx/release-1.14",
96+
"redirect_document_id": false
97+
},
98+
{
99+
"source_path": "docs/spfx/sharepoint-2019-support.md",
100+
"redirect_url": "/sharepoint/dev/spfx/sharepoint-2019-and-subscription-edition-support",
101+
"redirect_document_id": false
102+
}
103+
]
106104
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
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.
4+
author: kyracatwork
5+
ms.author: kyrachurney
6+
ms.date: 4/18/2023
7+
---
8+
9+
# CSOM methods for applying retention labels (setting ComplianceTags)
10+
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#retention-labels)
12+
13+
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)
14+
15+
CSOM methods are available to apply (set) a retention label (ComplianceTag) on one or many items (ListItems) in SharePoint. Retention labels can be applied using this method without being published to the ___location by an existing label policy.
16+
17+
> [!IMPORTANT]
18+
> Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
19+
20+
## SetComplianceTagOnBulkItems
21+
22+
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.
23+
24+
```c#
25+
public List<int> SetComplianceTagOnBulkItems(
26+
List<int> itemIds,
27+
string listUrl,
28+
string complianceTagValue)
29+
```
30+
31+
### Parameters
32+
33+
- 'List' [Int](/en-us/dotnet/api/system.int32)
34+
- 'ItemsIds' [String](/dotnet/api/system.string)
35+
- 'ListURL' [String](/dotnet/api/system.string)
36+
- 'ComplianceTagValue' [String](/dotnet/api/system.string)
37+
38+
Attribute [RemoteAttribute](/dotnet/api/microsoft.sharepoint.client.remoteattribute)
39+
40+
### Applies to
41+
42+
|Product|Versions|
43+
|:---|:---|
44+
|SharePoint CSOM|latest|
45+
46+
## Other
47+
48+
> [!NOTE]
49+
> It is strongly recommended to use SetComplianceTagOnBulkItems instead of these methods.
50+
51+
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.
52+
53+
* [SetComplianceTag](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetag)
54+
* [SetComplianceTagWithExplicitMetaInfo](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithexplicitmetasupdate)
55+
* [SetComplianceTagWithExplicitMetasUpdate](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithexplicitmetasupdate)
56+
* [SetComplianceTagWithHold](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithhold)
57+
* [SetComplianceTagWithMetaInfo](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithmetainfo)
58+
* [SetComplianceTagWithNoHold](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithnohold)
59+
* [SetComplianceTagWithRecord](/dotnet/api/microsoft.sharepoint.client.listitem.setcompliancetagwithrecord)

0 commit comments

Comments
 (0)