Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
Answered

Custom Connector with Dynamic URL

(0) ShareShare
ReportReport
Posted on by 393

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?

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Custom Connector with Dynamic URL

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

  • Verified answer
    akandis Profile Picture
    393 on at
    Re: Custom Connector with Dynamic URL

    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 Super User 2025 Season 1 on at
    Re: Custom Connector with Dynamic URL

    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.

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