Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

How Power Virtual Agents Conditions works?

(0) ShareShare
ReportReport
Posted on by 124

I'm a super newbie with power virtual agents and bot, I'm trying to create a simple bot that answers about a SharePoint list.

My first basic topic asks for the license plate number and answers with the name of the owner of the car and it works fine until I use a nonmatching license plate number, in that case, the flow returns a string with "0" (I've also tried with "Empty") but condition fails to recognize the "0"

DPozzi_0-1667484343678.png

How can I compare the output value from the flow inside the bot?

 

  • Verified answer
    DPozzi Profile Picture
    124 on at
    Re: How Power Virtual Agents Conditions works?

    @gregmarbais Thanks for answering me, my fault... I was looking at it all the time but I wasn't seeing it!

    in the condition, I've used the "varTarga" but the flow output is "Assegnatario" silly me 😅

     

    as soon as I used the right variable it started to work fine... as my professor always says: **bleep** in **bleep** out 🤣

     

  • gregmarbais Profile Picture
    108 on at
    Re: How Power Virtual Agents Conditions works?

    Hey @DPozzi I tried a simple version with zero returned as a string and when it made it to PVA, it recognized it as a number. Can you post more screenshots? Maybe there are extra spaces -or it may just be easiest to convert the string in the flow.

    The flow:

    gregmarbais_0-1667506296242.png

    The flow output does come in as text, but when I run it, the condition does match to the 0 number

    gregmarbais_1-1667506359380.png

     

    It may just be easiest to add a condition action in your flow and if the variable comes back as 0 then have the flow set the variable to something like "Nothing found" or if something did come back set it to the returned value.

    gregmarbais_2-1667506791482.png

    (This may also help uncover why it's not coming through to PVA and matching what you have in the PVA condition)

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
Pablo Roldan Profile Picture

Pablo Roldan 25

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 23

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard