Hi,
I am have created a Flow, which uses "Create CSV Table" and then store the output as a file in a One Drive folder using One Drive "Create File".
The data is coming from a SharePoint list. The Flow triggers when a new item is created.
Problem:
Each time the flow runs it replaces the old file in the source folder.
Solved! Go to Solution.
To preserve the original file, consider adding something like the current date and time after the EmployeeName name in the action. You'll enter utcNow() in the expression window. It should look something like this:
Be sure to click on Update after entering utcNow() in the expression window.
Another alternative is just to let the file be overwritten. Versioning is turned on by default in OneDrive for Business. Creating the new file with the same name should just add a version to the existing file (double check me on this...)
Sorry!
I had made a silly mistake. I was getting the file name from after "Get item", which was returning the same name.
I fetched the name from "When an item is created" and that solved the problem!
To preserve the original file, consider adding something like the current date and time after the EmployeeName name in the action. You'll enter utcNow() in the expression window. It should look something like this:
Be sure to click on Update after entering utcNow() in the expression window.
Another alternative is just to let the file be overwritten. Versioning is turned on by default in OneDrive for Business. Creating the new file with the same name should just add a version to the existing file (double check me on this...)
Sorry!
I had made a silly mistake. I was getting the file name from after "Get item", which was returning the same name.
I fetched the name from "When an item is created" and that solved the problem!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
68 | |
24 | |
18 | |
16 | |
13 |
User | Count |
---|---|
133 | |
43 | |
32 | |
32 | |
28 |