Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

I'd like to create a CSV file and delete the previous one

HI, I've created a flow that creates a CSV file, adds it to a sharepoint folder, and emails persons when it's complete.
What I'm trying to do is to replace the previous version (both files have the same name).

Any suggestions would be appreciated. 

Here's my existing one. Works great. 
StevenT_0-1671286929852.png

Where do I add the "When a file is created / Codition" steps? and am i choosing the correct steps to add to my workflow?

StevenT_1-1671287044144.png

 

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,
Wouldn't your current action create a new version of your existing file already?
But if you want to delete the existing verison history of the file, you must delete the existing file before adding a new one. So just add the deleting step before the step where you create the new file.
Also: Next time, please choose the dedicated Power Automate forum: Microsoft Power Automate Community - Power Platform Community

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks very much, it was exactly what i was looking for!

Anonymous
Not applicable

Wouldn't your current action create a new version of your existing file already?
Yes, I want to overwrite it everytime i run it.

So to confirm, I would place it here

StevenT_1-1671307409090.png

 




ImkeF
Community Champion
Community Champion

Hi @Anonymous ,
Wouldn't your current action create a new version of your existing file already?
But if you want to delete the existing verison history of the file, you must delete the existing file before adding a new one. So just add the deleting step before the step where you create the new file.
Also: Next time, please choose the dedicated Power Automate forum: Microsoft Power Automate Community - Power Platform Community

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.