Skip to main content
Community site session details

Community site session details

Session Id : X/P/COqlzdz2hmtZAZOPPo
Power Automate - Building Flows
Unanswered

Create .csv file from FORMS answers and add it to an e-mail

Like (0) ShareShare
ReportReport
Posted on 6 Nov 2023 08:52:17 by 5

HI all,

 

I've created a Power Automate Flow where the Answers from Forms are combined in an e-mail. This looks like this: 

Tobias_PCI_0-1699260218656.png

 

Gets the response details. Then there is a switch, which differs multiple answers, but that's not important for now.

Tobias_PCI_1-1699260285159.png

 

These questions are parsed into an e-mail. One with possible attachment and one without. The condition will define if there is an uploaded attachment or not. And the e-mail looks like this: 

Tobias_PCI_3-1699260602261.png

 

 

Those green entries are the answers from the Forms. 

 

So the question is:

"I want to parse all of those e-mail answers in a .csv file and add it to the same e-mail."

 

It would be highly appreciated if someone could help me with this. This is a feature we want really bad.

 

Thanks in advance and have a great day!

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 06 Nov 2023 at 11:52:45
    Re: Create .csv file from FORMS answers and add it to an e-mail

    Hi @Tobias_PCI 

     

    I have a sample flow for you. In this example, the MS form has 3 fields - Title, PM Name, PM Email. Here are the actions that you need to add for creating the csv file:

     

    1. Add compose action to store the header & data row of csv file. Enter the headers in compose action & then press an enter key. In the next line, select the values from the MS form. Each header & data values are separated by comma (,) as shown below:

    ManishSolanki_0-1699271224599.png

    Title,PM Name,PM Email
    @{outputs('Get_response_details')?['body/ra9a50b6b15814a51b32f6a809cc96637']},@{outputs('Get_response_details')?['body/rc8b5ed66a30e42afaa1c1813f6b7a929']},@{outputs('Get_response_details')?['body/re0245d0f5b734ff7abe650253edb4cdb']}

     

    Now, we have csv content in compose action, we can pass it into the attachment content parameter of send an email action:

    ManishSolanki_1-1699271359978.png

    For attachment name, I have used responseId.csv in the sample flow but you could change the logic of generating the file name as per your need. Pls remember to have .csv as its file extension.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2