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 / Copilot Studio / How Power Virtual Agen...
Copilot Studio
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?

 

Categories:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 372

#2
Valantis Profile Picture

Valantis 258 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 205 Super User 2026 Season 2

Last 30 days Overall leaderboard