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 / environment variables ...
Copilot Studio
Suggested Answer

environment variables for copilot studio knowledge

(0) ShareShare
ReportReport
Posted on by
Can you please help me with below question?
We use environment variables in power apps and power automate to point/update share point URLs according to the environment. How to manage the same in copilot studio?

Example: I have created an agent which is taking knowledge from UAT-Sharepoint and I want the agent to take knowledge from Prod-Sharepoint automatically after deploying my agent to production environment.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    The answer depends.
     
    If you mean you have a flow then its just normal.
     
    If you added a SharePoint knowledge Source and its documents No you cannot
     
    If you added a SharePoint knowledge source that is using Get Items (then its just a flow and you can use them there)
     
    Simply put, Knowledge sources that you configure directly you cannot point at an environment variable.
     
    If you want to get data from somewhere and do it dynamically like that the best way is via a Flow still versus trying to use Variables directly in Copilot, recognizing that all Tools are just flows so are Agent flows and you can build them in Copilot, then go out to power Automate and populate it with environment variables and it will work, it just doesn't in the Ux of CP.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 671

#2
Vish WR Profile Picture

Vish WR 266

#3
Haque Profile Picture

Haque 265

Last 30 days Overall leaderboard