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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How Power Virtual Agen...
Copilot Studio
Unanswered

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?

 

Categories:
I have the same question (0)
  • gregmarbais Profile Picture
    108 on at

    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)

  • Verified answer
    DPozzi Profile Picture
    124 on at

    @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 🤣

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard