web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector - mul...
Power Automate
Unanswered

Custom Connector - multiple triggers for same URL (or multiple responses for single trigger)

(1) ShareShare
ReportReport
Posted on by 160

Hello,

I am trying to create a new custom connector to a third party API. Some things to note:

  • We do not have any control over the API, so modifying it is out of the question.
  • The API does not support OpenAPI/Swagger (it is an Apiary API, has it's own "API Blueprint"). Because of this, I have created the custom connector from blank.

This API supports a bunch of webhooks. Great! I can make a bunch of triggers! Or so I thought... 

The webhooks are from a single URL (POST --> ../api/v1/webhooks). To create a given webhook, I specify a parameter in the body of my request (e.g. "Type": "Sale/OrderAuthorised"). The first trigger was easy to set up and worked perfectly. However, I try to add another trigger (under Request > Import from Sample) and I am met with the following error:

The combination of path and method must be unique to each operation. There are 2 operations sharing this path and method including: SaleQuoteAuthorised, SaleOrderAuthorised

Bummer. So I can't create multiple triggers with the same URL. Okay then, perhaps I can make the webhook trigger generic, have the user select the "Type" in a dropdown instead, and then have multiple responses for a single trigger... NOPE. I can't add multiple responses to a single trigger either! So, what is the solution to this problem then? Seems like I should be able to workaround this limitation... but I can't figure it out. Any help is appreciated!

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @aorphan,

     

    It seems like it cannot use the payload to specify the event type. However, you could instead use a different webhooks URL to distinguish between events.

    You could have a try to create another endpoint that has event Type in the path.

    You could refer to this source: https://stackoverflow.com/questions/46230634/make-multiple-webhook-trigger-configurations-in-microsoft-flow-custom-connector

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • aorphan Profile Picture
    160 on at

    Hi @v-litu-msft ,

    Yes, I have seen this post. Again, this is a third party API; i.e. we cannot modify it to suit our needs. This limitation is unfortunate, it's going to require some other difficult workaround. Maybe a wrapper or just custom code and ditch the custom connector concept.

  • Verified answer
    aorphan Profile Picture
    160 on at

    I was able to workaround the problem. It's not fun and Microsoft should fix the limitation to open up triggers a bit more. Here's how I did it.

    1. Make your trigger generic (I just called mine "webhook").
    2. Set the body parameter "Type" visibility to "important" and set it to a static dropdown with different options.
    3. Replace the response with an empty response (click "Import from sample" then just click "Import" without entering any input).
    4. In your flows, if you want to query data out of the trigger body, you have to do it like so: triggerBody()['SomeField'] (since you cannot specify a response for this to work)

    Hopefully this helps someone else!

  • dreamweaver9962 Profile Picture
    on at
    @aorphan I tried to make generic response as you suggested. However I'm not able to access the output on the PowerApps. When I did a monitor I can see that the connector is working as expected, the issue is showing the data on PowerApps. The output response for my query is different for each actions, I think that could be causing the issue.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard