cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User II
Super User II

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!

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?

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!

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}

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

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (18,772)