Skip to main content

Notifications

Power Platform Community / Forums / Bot Extensibility / issue in PVA global va...
Bot Extensibility
Answered

issue in PVA global variables usage in azure bot framework

Posted on by 7

Hi ,

1)I have created a new bot in PVA and i have created global variable in PVA. and opened the same bot in the Azure bot framework composer.

bot.ReportName

2)In the bot framework composer  i have assigned the userinput value to the Variable "${virtualagent.ReportName}" to get the userinput value to the PVA global variable.

chithrashree_0-1631541216701.png

3) when testing the bot i am getting the below error message when trying execute in PVA.

chithrashree_1-1631541672897.png

 

 

 

  • chithrashree Profile Picture
    chithrashree 7 on at
    Re: issue in PVA global variables usage in azure bot framework

    Correct.

    i have created global variable in PVA bot.ReportName and i have assigned this variable in BF composer.

    chithrashree_0-1631614548220.png

     

     

     

     

    and  the value is assigned to that variable. But when i am calling the flow passing this variable value the flow is not triggering with the assigned value in PVA . 

  • lauren-mills Profile Picture
    lauren-mills on at
    Re: issue in PVA global variables usage in azure bot framework

    Could you clarify your question? 

     

    In BF Composer, you can use conversation, user, dialog, and turn state scopes, but for variables to be accessible in both PVA and Composer they should be stored in the bot/virtualagent scope as you have done in your example above.

  • chithrashree Profile Picture
    chithrashree 7 on at
    Re: issue in PVA global variables usage in azure bot framework

    Thanks, worked for me. I have one more question if i have created any bot from the Bot framework for PVA bot that i can see in the PVA topic list.

    chithrashree_0-1631544673504.png

    I do not have option to create a global variable (+) in this bot. currently i have created global variable in the PVA bot which i have created initially and used the same.

     

  • Verified answer
    lauren-mills Profile Picture
    lauren-mills on at
    Re: issue in PVA global variables usage in azure bot framework

    Hi, when you set your property in Composer, you don’t need to use the ${} syntax. You can just set virtualagent.ReportName to user.ReportName.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,030

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,085

Leaderboard

Featured topics