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 / Power Apps / Environment variable n...
Power Apps
Answered

Environment variable not detected in a custom connector?

(0) ShareShare
ReportReport
Posted on by 287

Hello all,

 

I'm building a solution where my plan is to ship a solution to another environment / tenant that includes a custom connector. Currently my solution is very simple and I'm trying to get the connector to work with some environment variables:

VilPel_0-1680340623876.png

 

I'm having a challenge in the Security-tab of my custom connector. I have been instructed to refer to the environment variables of my current environment like this:

VilPel_1-1680340749937.png

 

I even have the value of the client ID correctly defined in the environment variable: 

VilPel_2-1680340802776.png

 

When I try to create a new connection to this connector, I am getting this error:

VilPel_3-1680340866990.png

 

Seems like the expression was not detected? Am I doing something wrong?

 

With hard-coded values the custom connector works fine, I'm only having problems with the environment variables.

 

Thank you in advance, 

Ville

Categories:
I have the same question (0)
  • Verified answer
    VilPel Profile Picture
    287 on at

    Turns out I have been using the wrong type of double quotation marks the whole time. The blog post in Power Automate (https://powerautomate.microsoft.com/en-us/blog/environment-variables-in-custom-connectors/) instructs to use the experssion:

    @environmentVariables(“crd10_SnowConnector_Instance”)

     ... which does not work

     

    The correct way is to use:

    @environmentVariables("crd10_SnowConnector_Instance")

     

    Now it started working. Just wasted hours solving this issue but I guess that's developing for you 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard