web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Bot Extensibility
Unanswered

Copilot Studio agent deployed on SharePoint site - global variable is not working

(1) ShareShare
ReportReport
Posted on by

Hi everyone,

I’ve implemented a Microsoft Copilot agent using Copilot Studio and deployed it directly to a SharePoint Online site. The agent is designed to capture a value from the query string in the page URL and store it in a global variable for use during the conversation.

This setup works perfectly on a demo website, where the agent successfully reads the query string and stores the value. However, when I test the same agent on the SharePoint Online site, it fails to capture the query string value.

What I’ve Tried:

  • Used the global variable approach to read the query string.
  • Verified that the query string is correctly appended to the SharePoint page URL.
  • Confirmed that the agent is embedded and loads correctly on the SharePoint page.

Issue:

On SharePoint Online, the global variable does not get populated with the query string value, even though the same logic works on a non-SharePoint demo site.

Questions:

  • Are there any known limitations or restrictions with query string parsing in SharePoint Online when using embedded Copilot agents?
  • Is there a recommended workaround or alternative method to pass values from SharePoint to the agent?
  • Could this be related to how SharePoint handles iframe embedding or URL rewriting?

Any insights or suggestions would be greatly appreciated!

Thanks in advance.

Categories:
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics