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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

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
Super User
Super User

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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