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 to search...
Power Automate
Answered

If condition to search part of string not working

(0) ShareShare
ReportReport
Posted on by 3

Hello. I need to use If condition to search for a part of the string of the variable DataFromWebPage(extracted using Data Web Extraction action). This DataFromWebPage variables have a "Unique value" by default, and the result is "Prime Early Access deals" after being scraped from the page.

In the "If" "First operand" field, Im entering the expression DataFromWebPage.

In the "Operator" field, im selecting "Contains".

In the "Second operand" field, im typing "Prime", to see if it finds the first word of the string.

After the if condition, on the 'Then' part im using Show Message action to trigger so i Can be sure it captured the string, but the show message action is not triggering, as if the if is not working.

 

Im using Control + F hotkey and then typing Prime to search for the Prime keyword, and then the next action is Data web extraction to retrive "Prime Early access deals" and store it as DataFromWebPage variable. After that, comes the if and the show message action.

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @SamuelMDC 

     

    Could you try like this 

     

    Nived_Nambiar_0-1686709356179.png

     

     

    I think you are trying to extract in single value, but power automate desktop will extract that in datatable mode itself. so i have extracted first row, first column value like above and use contains operation 🙂

     

    Hope that helps

    Mark it as solution if it resolves your query !

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard