Skip to main content
Power Automate
    • Connectors
    • Templates
    • Take a guided tour
    • Digital process automation
    • Robotic process automation
    • Business process automation
    • Process advisor
    • AI Builder
  • Pricing
  • Partners
    • Blog
    • Documentation
    • Roadmap
    • Self-paced learning
    • Webinar
    • Business process and workflow automation topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Microsoft Power Automate Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Automate
    • General Power Automate Discussion
    • Using Connectors
    • Building Flows
    • Using Flows
    • Power Automate Desktop
    • Process Advisor
    • AI Builder
    • Power Automate Mobile App
    • Translation Quality Feedback
    • Connector Development
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Galleries
    • Community Connections & How-To Videos
    • Webinars and Video Gallery
    • Power Automate Cookbook
    • Events
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Community Engagement
    • Community AMA
    • Community Blog
    • Power Automate Community Blog
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Microsoft Power Automate Community
    • Galleries
    • Webinars and Video Gallery
    • Dynamically Changing Power Automate Custom Connect...

    Dynamically Changing Power Automate Custom Connector Values using Policy Templates

    08-10-2020 08:16 AM

    Microsoft KentWeare-MSFT
    Microsoft
    848 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    KentWeare-MSFT
    Microsoft KentWeare-MSFT
    Microsoft
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Dynamically Changing Power Automate Custom Connector Values using Policy Templates

    ‎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.

    watch?v=PmfrG57-9Hc

    Labels:
    • Labels:
    • Tutorials
    Message 3 of 3
    848 Views
    1 Kudo
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    KentWeare-MSFT
    Microsoft KentWeare-MSFT
    Microsoft
    In response to M365Architect
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎11-02-2020 07:11 AM

    Hi,

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

     

    Regards,

     

    Kent

    Message 1 of 3
    713 Views
    0 Kudos
    Reply
    M365Architect
    M365Architect
    Frequent Visitor
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎10-09-2020 09:28 AM

    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?

    Message 2 of 3
    795 Views
    0 Kudos
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    • Sign up free
    • Sign in

    Browse

    • Templates
    • Connectors
    • Partners

    Downloads

    • Mobile
    • Gateway

    Learn

    • Documentation
    • Learn
    • Support
    • Community
    • Give feedback
    • Blog
    • Pricing

    • © 2023 Microsoft
    • Contact us
    • Trademarks
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Terms & conditions
    Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices