I can’t figure out how to properly Execute a MERGE node if I only have data on one of the inputs. Here’s the scenario I’m trying to build.
I’m building a workflow to add a student to a class. If the student is not already in our online classroom system I first create the student, then I enroll the Student. To do this all I use an http request node to check if they’re in the system, then an IF node - TRUE if they already exist, FALSE if they aren’t in our system. On the TRUE path I’m using a SET node to assign their student ID to a field, on the FALSE path I’m using an HTTP Request node to Create the student in our system and then SET node to assign the new student ID to a field. Then I want to use a merge field. The problem is only one path will fire after the IF statement, and it looks like my MERGE is waiting for data from the second path. Any idea on what the right approach would be? I tried setting the MERGE node to “Always Output Data” but I’m still not seeing any output when I execute the node.
Why are you using combine mode? Was append not working for you for some reason, I believe the last time we had a conversation the merge node was in append mode which would work for this setup.
No, I had to go back an change the pinned data to trigger this path, then I was able to get the IF statement to work. I’m now working downstream of that IF statement.
I still need to have some type of if statement to get the student ID. I need that field to enroll the student, and I have to get the value either from the Create Student http request or from the Check if user exists mode. That’s why I was trying to use the merge node. Is there a way to use the Variable “student_id” that I created in the SET nodes without referring to the node?