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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.