How to use IF and Merge together since only 1 branch gets activated?

Hi,

I’m trying to do a condition “IF contact exists, update it with the known ID, otherwise create the contact (this generates an ID), then Merge the ID so that the downstream node reference the Contact ID (wether it already existing or was just created).

However since it’s a IF condition, only 1 branch gets activated per run and I’m unable to get the Merge node to work since it expected input from the 2 branch.

How can I do that?

Hey @mrey hope all is well. Welcome to the community.

Do you need to set contact ID in each branch? can you do it in the same Set node and drop merge node entirely?