Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

How to Add Count function For pending messages In PWA for Chatbot?

Hello All,

I created a chatbot and integrate into the canvas app through Power Bi, so  I have one Label And I want to add pending messages from the chatbox on that label.


Super User
Super User

Hi @Sohil_kazi ,


Great use-case! 🙂

If you are using PVA inside Power Apps means that you are using the iFrame with PCF.

In that case, you can use external variables to pass values from Power Apps to your PVA bot.

Use chatbot variables to carry content across topics - Power Virtual Agents | Microsoft Docs


But if you want to apply a custom query or something like that using this variable inside the PVA bot, you will need to pass this variable to your Power Automate workflow using actions and return it as an output.

Automate chatbot actions with flows - Power Virtual Agents | Microsoft Docs

Did I answer your question? Mark my post as a solution!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Helpful resources

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Top Solution Authors
Top Kudoed Authors
Users online (1,615)