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 Automate / Create a new document ...
Power Automate
Answered

Create a new document library and populate it with folders in a single flow?

(1) ShareShare
ReportReport
Posted on by 18
Hi,
 
I am trying to create a Flow that will create a document library then add a number of folders to it.  I can do this using two flows but I wanted to streamline this to a single flow.  The issue I am hitting is I can't create a folder in the newly created document library because it doesn't exist yet, hence I get this error:
 
 
Is there a way I can get around this? Can I call another flow maybe, if so how would I pull in parameter from the previous flow?  Or is there a better way to do this?
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    AnthonyAmador Profile Picture
    2,557 Moderator on at
    Hi, 
     
    Unfortunately, this is not possible using the name of the List or Library. You normally see the names of the libraries in the drop-down option, but in the backend, that is an entity ID. If you can find a way to extract the ID of that new library and enter it as a custom value, it might work.




     
    Hope this helps. 
    Anthony. 
     
    If my reply answers your question, please like and mark it as verified. This helps me stay motivated to assist others and makes it easier for users with similar questions to find the answer. Thanks!
    Feel free to connect with me on LinkedIn!
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    Try like below
     
    Expression - 
    body('Send_an_HTTP_request_to_SharePoint')?['d']?['Id']
     
     
    Here the send http request creates the document library and second create folder action creates the folder on that created document library using its id with above expression to capture id of document library created.
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!
  • RobC-CTL Profile Picture
    18 on at
    Nived - genius! - thanks!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard