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

Community site session details

Session Id : FdMVjY6YuoTsAP6Esqfk9s
Power Automate - Building Flows
Unanswered

Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

Like (0) ShareShare
ReportReport
Posted on 9 Sep 2023 04:43:08 by 18

Hello,

I want to color code subject line if receive email from specific sender with specific subject and send again to users.

I have this in compose section but need help with "color subject RED,color subject green"

if(and(contains(triggerBody()?['From'], 'test@test.onmicrosoft.com'),contains(triggerOutputs()?['body/subject'],'Service Alert')),color subject RED,color subject green)

 

Can anyone please help me?
Thank you

  • Abdul_Afrad Profile Picture
    18 on 14 Sep 2023 at 03:31:32
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    Hello again

    Anybody can give an idea how can I format subject using power automate?

    Abdul_Afrad_0-1694662210433.png

     

    Thank you

  • VictorIvanidze Profile Picture
    12,540 on 10 Sep 2023 at 08:21:39
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject
    There is no ready-to-use code that will solve you problem. If you are ready to pay for development. please let me know.
  • Abdul_Afrad Profile Picture
    18 on 09 Sep 2023 at 19:26:36
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    I know that is for one user only. Want to set it up for a tenant.
    In any case, if you know the code for my question please let me.

    Thank you

  • VictorIvanidze Profile Picture
    12,540 on 09 Sep 2023 at 17:47:16
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    Power Automate flow is useless here.

    In Outlook for Windows have a look at conditional formatting - see https://support.microsoft.com/en-gb/office/automatically-change-incoming-message-colors-and-fonts-based-on-sender-subject-or-recipients-4efbf993-fb00-4f2c-9a3f-78e64e4455ec

    No native way to do that in OWA and in Outlook for mobile. You have to create an add-in. 

  • Abdul_Afrad Profile Picture
    18 on 09 Sep 2023 at 17:14:28
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    Both as well Mobile client

  • VictorIvanidze Profile Picture
    12,540 on 09 Sep 2023 at 17:12:49
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    What email client you are going to use to read email? Outlook on Windows? Outlook Web Access?

  • Abdul_Afrad Profile Picture
    18 on 09 Sep 2023 at 16:56:43
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    @ManishSolanki  I already know that. this is not what I want.

    Thank you

  • Abdul_Afrad Profile Picture
    18 on 09 Sep 2023 at 16:54:40
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    Abdul_Afrad_0-1694278300890.png

    When email arrives from a specific email address with subject line "Service Alert" want to change color to RED, it is resolved then GREEN otherwise just regular

    Thank you

  • VictorIvanidze Profile Picture
    12,540 on 09 Sep 2023 at 16:25:04
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    Please rephrase. What exactly do you want to achieve?

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 09 Sep 2023 at 04:53:04
    Re: Power Automate - using IF and AND when get emails from a specific email address and specific subject color code the subject

    Hi @Abdul_Afrad 

     

    Pls use below expression:

    if(and(contains(triggerBody()?['From'], 'test@test.onmicrosoft.com'),contains(triggerOutputs()?['body/subject'],'Service Alert')),'color subject RED','color subject green')

     

    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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2