I feel like I’m running around in circles… I hope somebody can help.
What I’m trying to do is collecting data from CDS and mail this to the user. How difficult can it be…
First I tried creating a CSV file with the “Create CSV” action. Unfortunately this only creates American style CSV’s (semicolons instead of commas as data separator and commas as decimal separator) and these cannot be opened (or converted) in my clients environment.
So now I try to create an Excel file using the Excel for Business actions. I use an existing Excel file with the right table in OneDrive. That file is altered for each flow run (delete all rows and add new rows):
- Gather previous data rows from Excel file
- Delete previous data rows
- Add new data rows
- Mail the Excel file
Steps 1 and 2:

Unfortunately this does not work because there is a strange caching issue in step 1. The results of step 1 are not correct in most cases. They seem to be the output of the previous run or so.
Another problem with this solution is that only one instance of the flow can run, because I use one Excel template. And because the flow takes a long time to run, this might be an issue in the future.
So I tried to copy the empty template Excel first. So I don’t have to delete the rows first, and I can run multiple flows at the same time:
- Copy template file to filename+guid
- Add new data rows to new file
- Mail the Excel file
Steps 1, 2 and 3:
E2
Unfortunately this doesn’t work as well. I cannot use a dynamic generated filename in the “Add a row into a table” action.
I also tried to use the file ID that comes from the OneDrive copy action, that doesn’t work as well..
So I’m lost…
Should it be so difficult gathering data and sent it to the user per mail?
Hope somebody can help.
Thanks a lot,
Elowy.