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 / Power Apps Environment...
Power Apps
Unanswered

Power Apps Environment Variables and Custom Connectors

(0) ShareShare
ReportReport
Posted on by 2

I have a custom connector in power apps, which draws it's host address from an environmental variable called X. I am calling the variable (in the host field) with @environmentVariables("X"), but it does not seem to be carrying the value through to the api call. 

 

If I hard code the value of X in the host address, the api call works just fine.

 

I've troubleshooted through the main documentation, tried re-publishing the connectors, and I'm just out of ideas what I can do to fix this.

 

Can anybody help?

Categories:
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    HI @AnnaMNZ , Please confirm that you have default value available in your environment variable. Can you share the screenshot of environment variable when you click on edit.

     

    Also, this is happening in dev environment or this is happening in target environment?

    Please elaborate more.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

  • AnnaMNZ Profile Picture
    2 on at

    Thank you so much for taking a look at this!

     

    The screenshot is below, with private info redacted.

     

    This is happening in my dev environment, and yes, both default and current values are filled in.

     

    AnnaMNZ_0-1701808339340.png

     

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard