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 folder before c...
Power Automate
Unanswered

Create folder before create file

(0) ShareShare
ReportReport
Posted on by 12

I have a scenerio where i need to pull all attachments from share point list(I will pass ID from Powerapp) and create file on sharepoint library, I would like to check if folder already exist(I will pass Folder name from Powerapps) inside All Attachments folder, If Exist then Create those file inside that folder, If does not exist then create new folder then create files inside of it.

After that if the new file name already exist inside the folder then create another file like File name(1) and Next time File name(2) so on.

InkedCapture.jpg

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,488 Super User 2025 Season 2 on at

    Hello,

     

    Use the List Folder (for SharePoint).

    If the length of the returned value/body = 0 then use Create Folder  and then create your files else create your files

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard