cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

HTTP request to set Automatic records management for SharePoint library

Hello, I cannot finad any SP property to set up a document library created through HTTP as Inplace Records management list. Any ideas what parameter would it be?

5 REPLIES 5
Highlighted
Super User II
Super User II

Re: HTTP request to set Automatic records management for SharePoint library

The Sharepoint 2013 REST Service: Selected Endpoints for Files and Folders syntax map (PDF download) shows the full syntax of the entire REST API service for SharePoint. You may also find the Working with folders and files with REST documentation helpful, including the See also links at the bottom of the page. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Advocate I
Advocate I

Re: HTTP request to set Automatic records management for SharePoint library

Thanks for sharing this documents, @Brad_Groux. I've seen those endpoints already but in different publishing format. There is no mentioning of anything associated with records management. Maybe I am looking in a wrong place or maybe it's set in a different place?

Highlighted
Super User II
Super User II

Re: HTTP request to set Automatic records management for SharePoint library

Please see the Records class documenation, specifically the Microsoft.SharePoint.Client.RecordsRepository.Records namespace. For more information about the SharePoint CSOM (Client Side Object Model), please see this blog post. You can run CSOM PowerShell scripts and cmdlets via an Azure Funtion, and call those functions with Flow

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Advocate I
Advocate I

Re: HTTP request to set Automatic records management for SharePoint library

Shouldn't it just be one of the properties of SP.List Properties? https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee547487(v%3Doff... So i can just add this property to my site cretion request?

 

{ '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 101, 'Title': '2. Submission Documents', 'Description': 'This library hosts submitted proposal documents as official records.', 'OnQuickLaunch': true, 'ContentTypesEnabled': false, 'ForceCheckout': true}

Highlighted
Post Prodigy
Post Prodigy

Re: HTTP request to set Automatic records management for SharePoint library

Hi @ALEXANDERIII,

You can have a try with the configuration in your flow:

Uri: _api/Web/Lists

Headers: "content-type": "application/json;odata=verbose",

      "X-RequestDigest": $("#__REQUESTDIGEST").val() 

Body:

{ '__metadata': { 'type': 'SP.List' },

'AllowContentTypes': true,

'BaseTemplate': 101, 

'ContentTypesEnabled': true,

'Description': 'My list description',

'OnQuickLaunch': true,

'Title': 'MyTestLibrary'

}Annotation 2019-05-23 100501.pngAnnotation 2019-05-23 100411.pngAnnotation 2019-05-23 101413.pngPlease have a try and I hope it will help you.

 

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,179)