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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / If condition is multip...
Power Automate
Suggested Answer

If condition is multiple tekst in the first email then alerting

(0) ShareShare
ReportReport
Posted on by 1,089
Hello,
 
 
I want to create a power automate that:

Sends an email when an email arrives with a long piece of text in the body. (and then actually that only happens with the first email and not again when a relay comes up)
 
I have the following, but it doesn't seem possible to put a lot of text in the condition.
 
 
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi
     
    I would not paste the huge block of text directly into the Condition card.
    Store your long “needle text” once in a Compose, then use contains() to check if the email body includes it.
     
     
    1. When a new email arrives (V3)
    2. Keep Html to text (Content = Body)
    3. Compose (name it: Needle)
       
    4. Condition → switch to Expression and use:
      contains(
           body('Html_to_text'),
           outputs('Needle')
      )
     
    Let me know if helps!

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard