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 / Conditionally add html...
Power Automate
Answered

Conditionally add html text to email based on Microsoft Forms responses

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I have a flow that receives input from a Microsoft Form, creates an approval workflow, and then sends a custom approval email to the required parties:

 

Dominion85_1-1597087215152.png

Dominion85_2-1597087244774.png

Dominion85_3-1597087286435.png

 

In the approval email, an HTML table that contains the form questions and the form response variables is sent.

 

Dominion85_4-1597087416064.png

Dominion85_5-1597087489052.png

 

I would like to know how to only include specific text or rows in the approval email when the corresponding Forms question is answered. If the question is not answered, I would not like the question to show up in the email table.

 

For example if there are three questions in my form, and questions 1 and 3 are answered, but question 2 is not answered, I would like the email to only show the questions and responses for 1 and 3 in the table.

 

Please let me know if this makes sense or if you need more details or clarification of my question.

 

Any help would be GREATLY appreciated!

Thank you!

- Mike

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Dominion85  if the user don't fill the question in the space of email is going to appear empty. But you ca't hide the part of the html code in email if the user don't fill the question because as you know is HTML and is hardcoded. The only option you have is leave that option empty if ths user don't fill the question.

  • Dominion85 Profile Picture
    2 on at

    Thanks for your response Christian.

     

    Is it possible to accomplish this by using a SharePoint list to automatically populate the email with the questions and answers; or is it possible if I use a document template to pull the text instead of HTML?

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    mmm could be the same result friend

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Dominion85 ,

     

    Sorry for I'm afraid that your requirement couldn't be easy achieved in Microsoft flow currently.

    And the only way may be check all the question to see if the each question answer is null, then you could create different cases with different emails.

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard