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?
Solved! Go to Solution.
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:
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.
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.
Proud to be a Flownaut!
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:
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.
I'll get back to you as soon as I try this solution
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
10 | |
10 | |
6 | |
4 | |
4 |
User | Count |
---|---|
14 | |
7 | |
6 | |
3 | |
3 |