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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a folder for a ...
Power Automate
Unanswered

Create a folder for a dynamic SharePoint site using Flow

(0) ShareShare
ReportReport
Posted on by 61

Hi everyone,

 

I am trying to create a specific folder for a  given SharePoint site when a certain condition happens.  The scenario is that we have many SP sites so when I need to create this folder, the first step is to determine what SP site it needs to be created under which will be dynamic and determined during the Flow process based on the customer (i.e. the site).  I have tried using the new Create Folder action for SP in flow and using a variable for the site URL that I gather during the flow but it errors and the folder never gets created.

SP Site Folder Creation Error.pngSP Site Folder Creation Error1.png

 

Any ideas of how to resolve this?

 

Much thanks,

Donald Wisch

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @wischbone 

    In the "Create Support Case Folder" action, the list or library parameter should only be "Shared%20Documents", and then the folder path should be "General/Support/Case Number". Could you try this?

    Hope it helps!

    Ferran

  • wischbone Profile Picture
    61 on at
    I'll give that a try and let you know how it goes... Thank you so very much!
  • wischbone Profile Picture
    61 on at

    Hi @fchopo 

     

    I made the changes but it still errors.

    SP Site Folder Creation Error.pngSP Site Folder Creation Error2.png

  • wischbone Profile Picture
    61 on at

    @fchopo  thanks in advance for you help with this!!!

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @wischbone 

     

    You should be able to pass dynamic values and create folders. I have tested this and working as expected.

     

    Couple of things to debug this.

     

    1. Select the site address from the dropdownlist

    2. Select the list or library from the dropdownlist

     

    Try to run this and see if that works. This should work because we have hardcoded all the values using dropdown lists.

     

    Next copy the exact content from the drop down lists (Site - https onwards) and copy the value under the string variable then map the dynamic content.

     

    Let me know how it goes.

     

    Thanks

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @wischbone ,

     

    When you configure Site Address and List or Library filed, it is recommended to choose Site and Library from Dropdown list.

    151.PNG

    If the library is Document Library, you could click Enter Custom value and manually input Documents in List or Library.

    Like:

    153.PNG

    Besides, when you configure Folder Path, please ensure the General and Support folder exists.

    Please take a try again and feel free to let us know if you have any questions.

     

    Best Regards,

  • wischbone Profile Picture
    61 on at

    Thanks @abm !!! 

  • wischbone Profile Picture
    61 on at

    thanks @v-bacao-msft !!!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard