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 :

Dynamically Changing Power Automate Custom Connector Values using Policy Templates

KentWeare-MSFT Profile Picture Posted by KentWeare-MSFT Microsoft Employee

In this video we are going to explore how we can dynamically change the Host URL in a Custom Connector using Policy Templates. This allows us to control the Host URL inside of Power Automate or Power Apps so that we can maintain one version of our custom connector configuration. One use case that we can leverage this feature for is when dealing with systems that are environment specific (Dev/Test/Prod). You can now set this value inside of your connector's action and don't need to deploy multiple versions of your connect.

Categories:

Comments

  • KentWeare-MSFT Profile Picture KentWeare-MSFT Microsoft Employee
    Posted at
    Dynamically Changing Power Automate Custom Connector Values using Policy Templates

    Hi,

    I will take a look and let you know what I find out.

     

    Regards,

     

    Kent

  • M365Architect Profile Picture M365Architect 41
    Posted at
    Dynamically Changing Power Automate Custom Connector Values using Policy Templates

    Hi @KentWeare-MSFT ,

     

    I tried following the steps which you have mentioned. But in my case, the api is having a port number as well. Hence i tried the following

     

    1. Passed value from flow as "hostname:8282" and the invocation failed. The error message was unable to resolve "hostname". Surprisingly port number was not mentioned in the error message.

     

    2. I then updated the Url Template in Policy as https://@queryParameters('env_hostUrl'):8282/ and passed value as "hostname" from the flow. I then received error message i.e. Unable to resolve hostname. If pass the value as "hostname:8282" then i recevied error message as "incorrect format hostname:8282:8282

     

    How can I use the solution proposed in video when port number too has to be passed with host url?