Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
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:
  • Verified answer
    VilPel Profile Picture
    287 on at
    Re: Environment variable not detected in a custom connector?

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics