Forum Discussion
Problem with How to Create CSV table to include data obtained from Run a query against a dataset
- 1 year ago
You are missing a couple of steps here. To "send the csv as an email attachment" you first need to materialize the CSV into an attachment.
You are missing a couple of steps here. To "send the csv as an email attachment" you first need to materialize the CSV into an attachment.
- Anonymous1 year agoNot applicable
Hi lbendlin
Thanks for your input.
In my case I don't have Sharepoint but get the data from a dataset query.
So I have added in a step to Initialize variable of type Array as Name varFileAttachement.
Then after the Create CSV table action, I added in Append to array variable which adds the Output from Create CSV table to varFileAttachment.
Then in Send an email (V2) I have added varFileAttachment as the Attachment.
The flow runs but the email received has no attachment - what am I missing ?
Thanks
- lbendlin1 year agoSuper User
Step 8 in the document I linked to is the main step. Everything else is just prep work that you can replace with your own.
- Run query
- generate CSV table
- specify attachment name and content
- add attachments array to email