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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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