08-10-2020 08:16 AM
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.
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?