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 / Multiple second operan...
Power Automate
Answered

Multiple second operand with contains conditional

(0) ShareShare
ReportReport
Posted on by

Hello!

 

I'm trying to do an If, I've read a document and saved into a variable %XmlDocument% and I want to see if that document contains %Variable1% and %Variable2%.

 

I tried with several results I found on Google but seems I'm not doing ok.

BernatP_0-1719323952071.png

 

Thank you in advance.

 

I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @BernatP ,

     

    Please find the solution.

     

    VishnuReddy1997_0-1719325234692.png

     

    Code:

    IF $'''If %Contains(Datafromwebpage, Variable1, True) AND Contains(Datafromwebpage, Variable2, True)%''' = True THEN
    END

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • BernatP Profile Picture
    on at

    Thanks for your help!

     

    Seems it worked but I had to remove the "If" on the First operand.

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 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard