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 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,553 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,129 Super User 2025 Season 2 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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard