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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding multiple dynami...
Power Automate
Unanswered

Adding multiple dynamic content in mail

(0) ShareShare
ReportReport
Posted on by 6

Hi

 

 

Fairly new to Power Automate but very excited with the possibilities I have seen so far. 

 

I'm stuck with adding multiple dynamic content in my e-mail. I'll add an image to show (sorry it's in Dutch) but what I want to do is have this over 150 columns (it's a shared Microsoft Form) that you see in dynamic content to add this to the email. It contains names of First Aid victims. Is there a easy solution to select all the dynamic content seen on the image. Adding these manual is not an option. Or maybe an other solution to my problem?

 

Thanks in advance

Categories:
I have the same question (0)
  • Redders Profile Picture
    546 on at

    Hi @Axylum,

     

    It is difficult to understand the issue without seeing what you have created already. How are you triggering the flow? You say that there are over 150 columns, do you want all of the data that has been produced from the form or just a single instance?

    How to write a good forum post

     

    I'm going to assume that it is the email is the output of a single form and that the trigger is "when a response is submitted".

     

    After your trigger, add an action to "List rows present in a table"

     

    Fill in the location, Document Library, File and Table to the excel file where your responses are captured. Show advanced options and add "ID eq (Dynamic content from when a new response is submitted) Response ID" in the filter query

     

    Next add a "Create HTML table" action and add (Dynamic Content from List rows present in a table) value

     

    Now add a compose action

     

    <style>
    table {
     border: 1px solid #1C6EA4;
     background-color: #EEEEEE;
     text-align: left;
     border-collapse: collapse;
    }
    table td, table th {
     border: 1px solid #AAAAAA;
     padding: 3px 2px;
    }
    table tbody td {
     font-size: 13px;
    }
    table thead {
     background: #1C6EA4;
     border-bottom: 2px solid #444444;
    }
    table thead th {
     font-size: 15px;
     font-weight: bold;
     color: #FFFFFF;
     border-left: 2px solid #D0E4F5;
    }
    table thead th:first-child {
     border-left: none;
    }
    </style>

     

    After style, add (Dynamic content from Create HTML Table) Output

     

    Now add the Dynamic Content from Compose to the body of your email

     

    Redders_2-1665611141520.png

    Redders_1-1665611098844.png

     

    This should produce a nice CSS formatted table for your email, automatically adding all of the columns from the form into it automatically.

     

    If you have issues with the formatting of the table, you can play around with the CSS (in the compose action) or remove it altogether and just add the output of the Create HTML table into the email (Although this won't look very nice)

     

    If I have assumed incorrectly what your trigger is or what you want to produce in your email, this should give you the tools to amend and create what you need

     

    ━━━━━━━━━━━━━━━━━━━━━━━━━

     

    If I have answered your question, please mark your post as Solved.

     

    Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

     

    If you liked my response, please consider giving it a thumbs up. Thank you!

  • Axylum Profile Picture
    6 on at

    Hi @Redders 

     

     

    Thanks alot for your reply. So the 150 columns in the Form are alot of names categorised in groups. Wich means if they fill in the form, they first select the category (ex: 3TOO) because we have a list with the names. If you select 3TOO the user can select the name under that category. 

     

    So my dynamic content contains all the columns but only 1 of those columns has an actual name that got selected. The rest of the columns will be empty. 

     

    Thats why in my email I wanted to put all the dynamic content in because in a mail he only shows the input of the form. But didn't want to select all the dynamic content manually. 

     

    Hopefully I make sense 😅 

  • Redders Profile Picture
    546 on at

    @Axylum,

     

    It sounds like this will be the solution for you then

     

    ━━━━━━━━━━━━━━━━━━━━━━━━━

     

    If I have answered your question, please mark your post as Solved.

     

    Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.

     

    If you liked my response, please consider giving it a thumbs up. Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard