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 : 29wW4ZPDtkX7rnTzJ699Ma
Power Apps - Connector Development
Answered

Environment variable not detected in a custom connector?

Like (0) ShareShare
ReportReport
Posted on 1 Apr 2023 09:23:24 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 01 Apr 2023 at 14:09:59
    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

Responsible AI policies

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

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 898 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 305 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics