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 Format M...
Power Automate
Unanswered

Conditionally Format Microsoft Form Details sent in Email

(1) ShareShare
ReportReport
Posted on by 415
Hello,
 
I'm using a Microsoft Form that has a few yes/no questions, is it possible to store the answers to these questions in a variable or some other action, format the color (green for yes, red for no) and send all form responses in an email? I'm hoping to avoid creating a bunch of conditional actions with emails.
 
Trish
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    Its not super clear what you are saying.
     
    If you want to set something with a color, you have to have conditional checks, you cannot simply store it in a variable and that takes that away.
     
    But I don't know what the Email is supposed to look like, can you give me an example, like a picture of what you want in the email? What does it look like.
     
    Here is a simple example
     
    Email Body
     
    Are Pants Green: You could just put the answer as it will be Yes or no
     
    BUT if you want to actually change the metadata about something then you have to use expressions
     
    Second Example
    What Color are the Pants: add expression to return Green if yes, Blue if no.
     
    You do not need Condition actions, you simply need to use expressions to check in the specific area that is needed. So if you can share what exactly you want to build in your email it will be easier.
     
    But the answer is, you don't need Conditions, just expressions.
     
     
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at
    Yes this is quite possible although in y experience not all email clients will render the color. Edit your send an email action in code view (meaning you'll need to add html tags throughout it). then you can use the <span style= color: with a variable.  In the image below I used a switch control ("Is this a team or individual nomination?") to set the value of the color variable and had a different email in each case - this was necessary anyway as the questions for a team were different to the questions for an individual.
     
     
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    The "conditional checks" of what color to assign an answer have to go somewhere
     
    You are saying you have multiple Answers, each answer has to be assigned to the color.
    A single variable isn't going to do that, (well unless you use an object or array or some concatenated string you parse later)
     
    So somewhere you have to place an expression to check what the answer value is, (Yes/No so Green/Red) so it can decide what color to choose.
     
    Whether you do that inline somewhere, or you add N number of variables, you will still have the expression in each variable, 1 for each question.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard