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.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,320)