Skip to main content

Notifications

Power Automate - General Discussion
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

 

 

 

 

 

 

 

 

  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard