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 / Global variable - avai...
Copilot Studio
Answered

Global variable - availability

(0) ShareShare
ReportReport
Posted on by 59

Hi.

 

Waiting with bated breath here for global variables to be available in May. It was originally April but pushed out to May - here's hoping. There really is no workaround for these.

Any news ? Anyone ?

 

https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave1/power-virtual-agents/use-global-variables-across-topics-within-bot

 

I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    Hi @dougmaloney,

     

    The 2020 wave 1 timelines have been impacted due to COVID-19.

     

    I did follow the PVA sessions on MBAS. They were a lot of mentions of public preview of new features like bot sharing, composer etc. by Aug and then GA in Oct.

    There was no mention of global variables but assuming timelines are similar.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    I saw or heard (I don't remember) Microsoft employees explaining that in the next weeks will be released. (It's not a promise, but we are hoping a lot of this feature)

    But COVID-19 impacted a lot of deliveries. (like Reza says) 

  • Verified answer
    CleberM Profile Picture
    on at

    Hey @dougmaloney ,

     

    We just released Global Variables (named Bot variables in PVA). Fresh out of the oven!

     

    You can see the documentation here: https://docs.microsoft.com/en-us/power-virtual-agents/authoring-variables-bot. You should see it right away if you create a brand new bot.

     

    Let us know what you think! 

    cc: @renatoromao  @RezaDorrani 

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Really nice @CleberM !! 🙂

     

    I tested here and works well.
    https://www.linkedin.com/posts/renatoromao_mtac-powervirtualagents-pva-activity-6671550956947169280-EQIP

  • dougmaloney Profile Picture
    59 on at

    @renatoromao @RezaDorrani 

     

    very pleased that this has been released. I am experiencing some weirdness with bot variables though....

     

    I have a PA action within a topic which returns 4 variables - one of them is set to "Bot - any topic can access". When I try to access this value later in another topic by displaying it in a message or passing it to another PA action, I get some strange behaviour :

     

    • The variable shows as "x Undefined" in the message block - even though I have checked and double checked to select the right one.
    • The PA action fails
    • The variable list/helper in the bottom left hand side of screen shows the variable listed more than once.

    PVA.png

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    @dougmaloney ,

     

    Did you try to delete the message inside the "Show a message" card and insert it again?

    Because maybe the issue was after the updates inside the variable (like name or something like that)

  • dougmaloney Profile Picture
    59 on at

    @renatoromao hi - yes I did - several times over.

     

    it is very strange - I have reproduced the issue 5 times and was about to send a video screen capture to demonstrate and the issue just went away.

     

    i just reproduced it again. here's the demo ...

    https://www.loom.com/share/607b308d9bfb41cd97d83d2be0b90196

     

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    It's strange because your workflow returns value to the variable.

     

    @CleberM  Do you know anything about it?

  • dougmaloney Profile Picture
    59 on at

    @CleberM @renatoromao Global variables doesn't work reliably.

     

    My observation & guess is that any PA action which attempts to return a value to a global variable does not do so reliably, and subsequent evaluations and tests of that variable do not work as expected.

     

    I have a scenario where in one PVA topic I call a PA action which sets a boolean global variable to true as it returns.

    In a later topic, this variable is tested with a condition for true/any other conditions.

     

    The branch for "any other conditions" always executes.

     

    I expanded the condition to include a check for false, so it now checks for true/false/any other conditions (I considered that maybe the variable is not set at all) and added messages to display the value of the boolean, before the branch and after each branch execution.

     

    Now, the 'any other conditions branch' is still always taken, even though the message displayed AFTER the branch is that the boolean is set to True. See attached.

     

    n.b. The widget to display variable values displays multiple values for variables - the variable in question always shows = True.

     

    not working.png

  • dougmaloney Profile Picture
    59 on at

    In addition to the above, I've established that :

    • Setting a global boolean variable from an action does not work - the variable can not be tested for true/false or passed to another action
    • Attempting to pass a previously set global boolean variable to a subsequent action fails. The action is never called (The PA action run history does not show any activity) and the 'bot craps out. 
    • On one occasion this global boolean variable showed up as shown in the image below from within the topic that defined it - spaces at the front of the variable name and all options greyed out.
    • A workaround solution to the whole issue is to use global String variables set to "True"/"False".

    spaces.png

      

     

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 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard