Unifying Process Output Format for client_data

There is a process that has 2 format outputs.
Goal: to make it so that there is one format output that would output a value in the client_data field regardless of how we got it, by ID or by Username.
Is this possible?

Let me know if this works:

no…

Hmm… in that case, try replacing for one of these expressions:

{{ $node["Get by Username"].json || $node["Get by TG ID"].json }}
{{ $node["Get by Username"].json ?? $node["Get by TG ID"].json }}
{{ $if(typeof $node["Get by Username"].json == "undefined", $node["Get by TG ID"].json) }}

EDIT

Sorry, that wouldn’t work either.

Here’s an example using the Merge node that works:

1 Like

yes, everything works!
thank you very much!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.