web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating a folder/fold...
Power Apps
Answered

Creating a folder/folders in current location or inside the selected folder in Sharepoint

(0) ShareShare
ReportReport
Posted on by 52

Hello,

 

Hope you're doing well.

I've come to find that I can't think of a way to make this work.
The scenario is as follows:

The user is in Sharepoint, in a folder already. We want to provide the ability to instantly create multiple folders (pre-defined names) in the folder where he currently is, or, alternatively, he can select the folder, in which he wants the folders to be created.

I did not find any solutions regarding the first scenario, to just "create here, where I am," but the second scenario uses "For a selected file" trigger, because folders are files in sharepoint, apparently.

I've tried playing around with couple of iterations, but the issue seems to be as to "where" to put the folders. 


I've attached a screenshot of the current setup - it kind of works, the only thing that it does not do correctly is, it duplicates the FullPath of folders in root directory, and puts the new folder in there, not within the selected folder.

Is there a way to edit the FullPath variable to delete the beginning of it? 

Folder Creator step has this input:

Folder Path:
DD/22-123 Test1/BIN1/Folder1; where

DD - Library in SP site
22-123 Test1 - Folder

BIN1 - Folder
Folder1 - the folder that I am creating with the flow.


But the output is like this:

Folder path:

DD/DD/22-123 Test1/BIN1/

 


Why does it duplicate the Library in the path?

 

flow.png
Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @RalfsZ ,

     

    Please try this:

    vxiaochenmsft_0-1647224264272.png

    vxiaochenmsft_1-1647224302908.png

    vxiaochenmsft_2-1647224329241.png

    replace(outputs('Get_file_properties')?['body/{FullPath}'],split(outputs('Get_file_properties')?['body/{FullPath}'],'/')[0],'')

     

    Best Regards,

    Wearsky

  • RalfsZ Profile Picture
    52 on at

    Thank you, this is what I found after longer searching around and it solved my problem.
    Your response is marked as solution to this.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard