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 / Custom Connector with ...
Power Apps
Answered

Custom Connector with Dynamic URL

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

Scenario

I have a Power Platform solution with Canvas app, Power Automates and Custom Connector. I'm using a Dev, UAT and Prod environemnt so in Dev I'm using a Unmanged solution and for the others Managed.

 

In Azure I have Azure Function resources consumed from the Custom Connector.

 

Problem

I can't change the Az Function resources automaticaly from Custom Connector.

 

Example of what I want

For example in the Sharepoint connectors I can use the Environment Variables to switch the SP Site URL. 

 

Question

Is there any way to be able to set the Az Function URL dynamically in the Custom Connector as in the Sharepoint Connectors?

Categories:
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    It depends on what part of the url you are talking about. The hostname cannot be dynamic (as far as I know... if anyone has figured out otherwise please correct me!) but you can tokenize the url in the operations just by using curly braces to denote a token.

     

    So, while your hostname might need to be "graph.microsoft.com", the full url can be 

    https://graph.microsoft.com/v1.0/users/{userPrincipalName}

    Where {userPrincipalName} is a token for any user Id. The Custom Connector will recognize the token and automatically create a Path parameter which can be provided when calling the custom connector.

  • Verified answer
    akandis Profile Picture
    on at

    Hello @cchannon ,

     

    Thanks for your response 🙂

     

    Finally my solution was use Environment Variables and OpenApi in order to swithc the URL depending on the environment.

     

    So I share the video that help me a lot on that part.

    https://www.youtube.com/watch?v=PmfrG57-9Hc

  • cchannon Profile Picture
    4,702 Moderator on at

    Nice find! I didn't know policy templates could dynamically set the host. Very cool!

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
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard