Skip to main content

Notifications

Copilot Studio - Bot Extensibility
Answered

issue in PVA global variables usage in azure bot framework

(0) ShareShare
ReportReport
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.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard

Featured topics