cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cabs
New Member

Customer Triggers - Define multiple triggers that use the same POST request to a create webhook API endpoint

Hi Flow Community 

 

Really hoping someone can help me with this one.

 

I am creating a customer flow connector that needs to have multiple triggers defined in the swagger file. For example
Trigger 1: Person
Trigger 2: Objective

Trigger 3: Review

 

I have a single Create Webhook API endpoint that I can make a POST request to thats sets up webhooks. The body of the request can be seen below. As you can see you have to state what entity I am interested in registering webhook notification for.

 

 

 

 

// Register a webhook to the person entity
curl --request POST \
  --url https://myapi.com/webooks \
  --header 'Content-Type: application/json' \
  --data '{"Entity": "Person", "URL": "https://some.flow.url.com"}'

// Register a webhook to the objective entity
curl --request POST \
  --url https://myapi.com/webooks \
  --header 'Content-Type: application/json' \
  --data '{"Entity": "Objective", "URL": "https://some.flow.url.com"}'

 

 

 


I'm struggling to model this in the Flow Custom Connector UI because after I've modeled the first trigger that uses the API the second trigger I try to create errors with the message below.

 

"The combination of the path and method must be unique to each operation. There are 2 operations sharing this path and method including PersonNotificatin, ObjectionNotification"

 

Image01.png

 

Can anyone explain how I can define multiple custom triggers in my swagger that use the same endpoint for creating a webhook and just post a different entity type in the body? 

 

Thanks

1 REPLY 1
thjeffri
Microsoft
Microsoft

Hi Cabs,

 

I haven't seen this issue before, but I did find an older forum post from another user with the same issue.  They found a workaround: 

 

https://powerusers.microsoft.com/t5/Connecting-To-Data/Custom-Connector-multiple-triggers-for-same-U...

 

I hope this helps,

Tom

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,296)