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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (31,583)