Carrying over data from an HTTP request after a GET to Redis

Hello, I’m currently working on a workflow that will pull all tickets from ConnectWise in the Assigned status, then ask Redis if any of those ticket numbers are in its database and for the ones that respond “Null” send a teams message to the technician listed as the owner of the ticket and then store a new key in Redis with the ticket number it just sent info to the tech about.

This is my current “Blueprint”

The current issue is that after Querying Redis all Redis sends is True or “Null”

I’ve tried to do If nodes, JavaScript nodes, loop nodes, and I’m stumped.

I just need to find a way to get the info from the HTTP request over to the switches to be sent out but only for tickets that respond Null, Weather thats some kind of loop, or filtering it and then doing a new HTTP request only for the tickets that respond null.

i’ve found that since “Null” is technically no data you can’t filter on null in n8n so thats also proving difficult.

Any help or recommendations would be amazing.

Thank you

Hi @sniped-you-fool, welcome to the community and sorry for the trouble!

This (a node overwriting incoming data) happens quite frequently. This can be addressed in a couple of ways. Personally, I go with the Merge node in such scenarios. You can find a quick example of how to do this here:

In this example, the HTTP Request would overwrite the data coming from “Generate random data”. The Merge node would then combine both branches.

In your example you’d of course merge the data coming from both your HTTP Request node and your Redis node instead.

Hope this helps! Let me know if you have any further questions on this.

1 Like