Is there a way to compare values in different bundles of webhook output? | Community
Skip to main content
gardensurfer
Level 3
October 2, 2024
Solved

Is there a way to compare values in different bundles of webhook output?

  • October 2, 2024
  • 1 reply
  • 625 views

I've asked similar questions in the past. I'm still trying to find ways to keep a scenario from running more than once on the same object. If I have a webhook output that looks like this:

is there any way to compare the id of the first bundle with the id of the 2nd bundle before moving onto the next module? It would be great if I could get my scenario to determine if the object is the same in both bundles and allow me to consolidate the execution to just one rather than 2. 

 

I am guessing Fusion just doesn't work that way - does each bundle get processed serially before getting to the next one? I thought I'd ask.  Thanks!

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lawson02

This took me forever to figure out but hopefully this helps

 

Flow is as follows

Bundles of info -> get valuelist -> filter (current bundle not in valuelist) -> set valuelist += value -> non-dupe bundles do stuff

 

Bundles

Get valuelist

Filter bundles

Set valuelist with bundle

1 reply

Lawson02
Lawson02Accepted solution
Level 6
October 2, 2024

This took me forever to figure out but hopefully this helps

 

Flow is as follows

Bundles of info -> get valuelist -> filter (current bundle not in valuelist) -> set valuelist += value -> non-dupe bundles do stuff

 

Bundles

Get valuelist

Filter bundles

Set valuelist with bundle

gardensurfer
Level 3
October 11, 2024

Cool solution @lawson02 . Now to see if I can apply this to my use case. Thanks!