web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 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?

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
    393 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard