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 :
Power Platform Community / Forums / Power Automate / How to pass arguments ...
Power Automate
Unanswered

How to pass arguments to a custom connector

(0) ShareShare
ReportReport
Posted on by 4

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.

Categories:
I have the same question (0)
  • tfhegdbn Profile Picture
    149 on at

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

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

  • LeeHarris Profile Picture
    1,026 on at

    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

  • ajs91 Profile Picture
    4 on at

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

  • LeeHarris Profile Picture
    1,026 on at

    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

  • imichalarias Profile Picture
    4 on at

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

  • SpencerCai Profile Picture
    25 on at

    Hi Lee, 

    Is it possible to pass environment variable as parameter into URL? 

    Like I preset an environment variable mymovideid with value 12345, can I change the parameter {mymovieid}  to env variable @environmentVar("mymovideid") ?

    The final link will be  https://api.themoviedb.org/3/movie/@environmentVar("mymovideid")

     

  • AndersonLimabr Profile Picture
    4 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard