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"
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
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:
I hope this helps,
Tom
User | Count |
---|---|
89 | |
41 | |
22 | |
20 | |
16 |
User | Count |
---|---|
133 | |
50 | |
48 | |
36 | |
26 |