cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SBK52
Frequent Visitor

Create a folder structure in library using REST API

HI,

I need to create folder structure in doc library using flows.

List(foldermapping) contains items/folder structure like this in title colum

Folder/subfolder/subsubfolder/subsubsubfolder

Based on this structture i need to create folders in doc library

I am achieving this CREATE NEW FOLDER in flow but through REST API nedd to create using send an http request.

1 REPLY 1
annajhaveri
Super User
Super User

@SBK52  below is example of rest api to create folder using Send HTTP request to SharePoint 

 

annajhaveri_0-1625232384368.png

 

Uri: _api/Web/Folders/add('shared documents/flowfolder1/subfolder1')

here Shared Documents is url of library

flowfolder1 is parent folder - if parent folder does not exist then first create parent folder using the same rest api but URL as _api/Web/Folders/add('shared documents/flowfolder1')

subfolder1 is the new sub folder that will be created by this rest api

 

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,406)