Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Cant use a condition comparing 2 variables

(0) ShareShare
ReportReport
Posted on by 30

I'm trying to create a condition that checks if {x}Var2 is equal to {x}Var1 (entered at an earlier stage within the same topic) in PVA.

It seems there is a limitation (unless I'm missing something) as I'm only allowed to use a condition with Var against a value.

example of what PVA allows me to do:

Condition: {x}Var2 is equal to 10

 

example of what I want to do (and can't):

Condition: {x}Var2 equals {x}Var1

 

Any idea on how to do the above?

Thank you,

Categories:
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Cant use a condition comparing 2 variables

    Yes, and consuming a high part of your Power Automate workflows runtimes.

    But I think that Microsoft is improving a lot this product, as soon will be great to work only with PVA 🙂

  • HaimOz Profile Picture
    30 on at
    Re: Cant use a condition comparing 2 variables

    True... tried and it works. Will use it.

    Its a shame though that I have so many Actions going out to PA because PVA doesn't allow so many things (yet).

    I'm sure it adds to the administrative complexity (maintaining so many flows and also has a performance implications I'll witness down the track.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Cant use a condition comparing 2 variables

    I already voted for your idea! 🙂

    During the validation of your idea, you can use my suggestion (Power Automate).

  • HaimOz Profile Picture
    30 on at
    Re: Cant use a condition comparing 2 variables

    Thanks @renatoromao , just added an idea.

    Feel free to back me up 😉

    https://powerusers.microsoft.com/t5/Power-Virtual-Agents-Ideas/Allow-using-2-variables-in-PVA-condition/idi-p/576979#M249

     

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Cant use a condition comparing 2 variables

    Hi @HaimOz ,

     

    We have some limitations using the Condition action.

    You can suggest the idea here: https://powerusers.microsoft.com/t5/Ideas/ct-p/pva_ideas

    Yesterday I submitted one idea related to "or" condition.

     

    One workaround is to call Power Automate to validate the condition using two variables and return the response to PVA.

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard