cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ajs91
Level: Powered On

How to pass arguments to a custom connector

I have a CustomConnector working. This connector connects to a REST API using the CodeFlow authentication method and queries the REST API. This is currently hardcoded to a host but I would like to make it generic. For example, I pass in a server address to the connector and then it will connect with that server. I'd like it to be reusable.

 

I thought I saw somewhere if you use curly braces ({}) with a string in between, this acts as an argument to be passed to the connector.

 

Basically I want to make a connector reusable by passing arguments to the connector.

5 REPLIES 5
tfhegdbn
Level: Powered On

Re: How to pass arguments to a custom connector

I think you can go to support for a suitable solution:

https://preview.flow.microsoft.com/en-us/support/

Highlighted
Super User
Super User

Re: How to pass arguments to a custom connector

Hi @ajs91

Yes you are correct, you can use variables defined in curly braces when setting up your Connector's requests. Flow will automatically add any value within { } as a parameter. You can then edit them to define things such as their type and whether or not they are required.

 

2019-02-04_10-58-40.gif


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


ajs91
Level: Powered On

Re: How to pass arguments to a custom connector

My issue is that I need to make the host an argument to be passed to the custom connector : 

 

parameterizeConnectorHost2.pngWhen I try this I get the error "Host does not support path templating"...

Super User
Super User

Re: How to pass arguments to a custom connector

Hi @ajs91

 

I see the issue now. Unfortunately I'm not certain its possible to achieve this. 

It may be worth raising on the ideas forum https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


imichalarias
Level: Power Up

Re: How to pass arguments to a custom connector

Did you solve this out? We are having the same issue! Thanx!

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,801)