Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make multiple webhook trigger configurations in Microsoft Flow Custom Connector

I am creating a custom connector and would like to make 3 Webhook Triggers with different event payloads. But the verb and path are same for all of them.

POST ->> "v1/Webhook"

So I am getting the error which says path and verb combination should be unique.  I checked Githubs Triggers and saw that they have 3 Triggers and as per their documentation they have only one Webhook Url. I would like to do the same for my service enter image description here

I have already tried putting dynamic path parameters but it also gives the same error.

Please help. Thanks

like image 557
hybrid Avatar asked Sep 15 '17 02:09

hybrid


People also ask

How do you create a custom trigger in Power Automate?

In Power Automate, select the Data > Custom connectors tab. In the Custom connectors pane, select New custom connector, and then select Create from blank. In the Create a custom connector dialog, enter the name of your custom connector (in this example, you can use Polling Test), and then select Continue.

Which three methods does a custom connector provide to authenticate to a secure API?

Secure your API Use one of these standard authentication methods for your APIs and connectors (Azure Active Directory is recommended): Generic OAuth 2.0. OAuth 2.0 for specific services, including Azure Active Directory (Azure AD), Dropbox, GitHub, and SalesForce. Basic authentication.


2 Answers

As far as I know you cannot use the payload to specify the event type. As a work around, you could instead use a different webhook url to distinguish between events.

like image 30
danspam Avatar answered Sep 21 '22 16:09

danspam


Did you try:

POST ->> "v1/Webhook#1"
POST ->> "v1/Webhook#2"
POST ->> "v1/Webhook#3"
like image 171
A STEFANI Avatar answered Sep 22 '22 16:09

A STEFANI