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 / Setting Global variabl...
Copilot Studio
Answered

Setting Global variables with external data from custom website passed as query parameter is not working

(1) ShareShare
ReportReport
Posted on by 71

Setting Global variables with external data from custom website passed as query parameter is not working.

 

For eg, from this URL name = ${user} param is not getting replaced with passed value in my chatbot created https://copilotstudio.microsoft.com/environments/{ENV_ID}/bots/{BOT_SCHEMA_NAME}/webchat?__version__=2&name=${user}

 

Kindly help me on this

I have the same question (0)
  • Verified answer
    adilei Profile Picture
    Microsoft Employee on at

    See if this helps: Re: Get external variables - Power Platform Community (microsoft.com)

  • Karishma2805998 Profile Picture
    71 on at

    Amazing, this is working on the first try. Doing some more testing on it

  • Karishma2805998 Profile Picture
    71 on at

    One problem I am facing is, user param Global variable is holding the same previous param value even when I change my website login user. Why? Please provide me solution for this

  • adilei Profile Picture
    Microsoft Employee on at

    I think that some context is saved if you just reload the same tab. Can you try and see whether this is reproduced when using a new tab?

  • Karishma2805998 Profile Picture
    71 on at

    In new tab it is not getting reproduced

  • Karishma2805998 Profile Picture
    71 on at

    Is there a way to clear the chat like a restart from beginning?

  • lluc Profile Picture
    11 on at

    Hi, same problem here, I want to parse the language choice from the website. It works but when I change the website language it does not reload to take the new language. When I open a new tab it does the job, but I would like a way to restart/reload the chat so it can be initialised again with the updated language.

  • JS-19071634-0 Profile Picture
    4 on at
    Has anyone found a solution to Karishma2805998's question? When the query parameter's value changes, the variable is not updated. Does anyone know of a way to force the global variable to check if the query parameter's value changed?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 599

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard