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 / How do I rename a OneD...
Power Automate
Unanswered

How do I rename a OneDrive folder via powerapps and flow ?

(0) ShareShare
ReportReport
Posted on by 32

Hi, I have a PA app that manipulates a bunch of strings and creates a folder name in OneDrive. Im creating a file in a folder that doesnt exist, i delete the file and Voila I have created a new folder. Now...I need to be able to change the folder name if the user changes the data in my app. For example if the user is selecting Status from a drop down =  pending , the folder name should be changed to "xxx-status_pending". Should I move everything to a new named folder or is there a better cleaner way to do this?

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @marketingandel  I was looking a way to rename a folder, but unfortunally does not exist, you can create a new one, or you can rename a file.

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

    Hi @marketingandel,

     

    Unfortunately, there is no action could rename the folder in Power Automate. As a workaround, you could follow the way you created the folder to create a new folder named contains pending, then move this file into it. However, it will produce many empty folders, so you need to figure out these empty folders after moving, and there is no action that could delete a folder in Power Automate, so it is hard to do it.

     

    There is a method provided by @edgonzales, it is a way to delete the folder, 

    So, here's a theory...let me know what you think:

    1. Map the OneDrive to a network drive
    2. Write a batch file to clear the drive.
    3. Call the batch file from a recurrence Flow.

    Maybe it could enlighten you something.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • marketingandel Profile Picture
    32 on at

    I'll get   back to you as soon  as I try this solution

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