web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to dynamically sto...
Power Automate
Answered

How to dynamically store results of a CSV table as an attachment for an Email?

(0) ShareShare
ReportReport
Posted on by 299

How to dynamically store results of a CSV table as an attachment for an Email? Below are steps I've taken...

 

  • I created an initial variable with name, that is an array.
  • later in my flow, I am getting data from my SharePoint list, with Get Items.
  • I then using the Select action to filter my column results that I want from Get Items.
  • I then used the Create CSV Table action to store the output of my above Select.
  • I then set my initial variable to the output of my Create CSV Table.
  • Finally, I opened up my Outlook send an email (v2) action, attachment content field...but it won't let me set the output of my set variable above, to be an attachment.

 

Things to note - I don't want to store these results in a physical location first, then getting the file. I want to create an email attachment on the fly via Power Automate, based on the Get Items data I already have.  That will cause frustration on my end for me because everyone I run my flow, Power Automate will complain that it cannot override the existing file that is there.  

 

 

 

What am I doing wrong or missing? Below are some screenshots...

 

 

kensley_0-1713825924807.png
kensley_1-1713826002997.png

kensley_2-1713826030832.png

kensley_3-1713826125331.png

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @kensley 

    You need to create the CSV file first before attaching.

    Check this.

    Automating "Export to Excel" from Sharepoint using Power Automate - Microsoft Q&A

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard