How to create context parameters for the URL in Logic apps custom connector.

Vamshi Kishore KALIKOTA 51 Reputation points
2020-08-27T05:12:00.44+00:00

How can we parameterize URL which we are providing while creating Logic app custom connector...So, that in different project environments it must fetch data in runtime.

Parameterizing host-name and base-URL in Logic App custom connector.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,784 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,873 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,526 Reputation points
    2020-08-28T09:44:34.263+00:00

    @Vamshi Kishore KALIKOTA As per the confirmation we are trying to configure the highlighted properties dynamically.
    21157-image.png

    So it will be difficult to change the host name and base url at the time of creation. However, to automate the process you can download the ARM template , modify it accordingly and can use that to deploy custom connectors whenever required. To do so you need to navigate to export template:
    21214-image.png

    Or you can download a template from portal when you are trying to create the connector:
    21232-image.png

    Otherwise, if you can use the base url then in case of other environments and you can redirect APIs to the correct environment depending on the method name passed as a path variable.
    Please refer to url-path-variables-in-azure-logic-app-custom-connectors

    Otherwise, you can leverage the logic app/ APIM to parameterize the url and directly call the APIs. For logic app you can check : parameterized-use-of-the-http-action-in-logic-apps

    Please let me know if this helps. If it does, please 'Accept as answer' and ‘Up-vote’ so that it can help others in the community looking for help on similar topics.