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

Community site session details

Session Id : IrakIHVJtYYaEIP+QRlB1g
Power Automate - General Discussion
Answered

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

Like (0) ShareShare
ReportReport
Posted on 22 Apr 2024 22:50:06 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

 

 

 

 

 

 

 

 

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 23 Apr 2024 at 01:18:54
    Re: How to dynamically store results of a CSV table as an attachment for an Email?

    @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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete