Fusion Webhook Filter with OR | Community
Skip to main content
Lawson02
Level 6
May 16, 2024
Solved

Fusion Webhook Filter with OR

  • May 16, 2024
  • 1 reply
  • 1020 views

I want my WF webhook to include multiple IDs but the filter section only includes AND. I read some other posts from a while back and it didn't look too simple to implement. Is there a simple way to add this statement to my webhook filter?

Filter: id EQUALS id1 OR id2 OR id3 ...

Best answer by lgaertner

Hi,

 

Unfortunately this is missing in Fusion and frustrates my very often. Months ago the support also confirmed, that they did not implement it yet.

Before Fusion I created webhooks using the Event Subscription API, and there the OR operator as well es the IN condition are perfectly working. Unfortunately I did not yet figured out a way to replace the Webhook referenced by the Watch Event module with the manually created webhook.

Although I do not really like this workaround I use a corresponding OR-filter right after the Watch Event module to cancel the scenario if not valid. But as the Watch event module mostly does not provide all necessary fields, another search module is needed in between.

I would really prefer to save some workload and especially operations in Fusion...

 

 

Regards

Lars

1 reply

lgaertner
lgaertnerAccepted solution
Level 9
May 17, 2024

Hi,

 

Unfortunately this is missing in Fusion and frustrates my very often. Months ago the support also confirmed, that they did not implement it yet.

Before Fusion I created webhooks using the Event Subscription API, and there the OR operator as well es the IN condition are perfectly working. Unfortunately I did not yet figured out a way to replace the Webhook referenced by the Watch Event module with the manually created webhook.

Although I do not really like this workaround I use a corresponding OR-filter right after the Watch Event module to cancel the scenario if not valid. But as the Watch event module mostly does not provide all necessary fields, another search module is needed in between.

I would really prefer to save some workload and especially operations in Fusion...

 

 

Regards

Lars

Lawson02
Lawson02Author
Level 6
May 17, 2024

I'm new to fusion, how would you create the webhook using the Event Subscription API? I saw the Adobe article from your last post on this topic but I'm not so sure that I understand it yet.

lgaertner
Level 9
May 17, 2024

The documentation for the Event Subscription API is here.

To create a new webhook in this API using Fusion, you will need to use the Custom API call module.

 

 

But as described, unless you find a way to replace the webhook link of a Watch Event module with this one, you will not be able to work with it using Fusion. I used that way in Google Apps Script to process the incoming data.

 

At the end also Fusion uses this API to create it's webhooks.

 

To get a list of existing webhooks, this should help:

 

 

 

For both API calls it is important to know, that you will only be able to see the response using the Fusion DevTool.

 

Regards

Lars