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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,847)