How to keep Gmail thread ids after if-else for labelling?

I have a pipeline configured like this: https://www.gumloop.com/pipeline?workbook_id=kT8zuE8VdG85qvS4E5wr8c

Unfortunately I couldn’t find a way to connect the If-Else to Gmail updater because I need to keep the “Thread IDs” from the GMail Reader node.

I tried enabling ‘pass_input_through’ in the If-Else node, but I can’t connect the node from Gmail Reader node, there’s no extra output values coming out of that connection. The connection disappears after saving and refreshing.

Does anyone know how to achieve this?

Hey @Paul! If you’re reporting an issue with a flow or an error in a run, please include the run link and make sure it’s shareable so we can take a look.

  1. Find your run link on the history page. Format: https://www.gumloop.com/pipeline?run_id={your_run_id}&workbook_id={workbook_id}

  2. Make it shareable by clicking “Share” → ‘Anyone with the link can view’ in the top-left corner of the flow screen.
    GIF guide

  3. Provide details about the issue—more context helps us troubleshoot faster.

You can find your run history here: https://www.gumloop.com/history

Hey @Paul – You’d have to use a subflow here to route the IF responses and then pull the Thread ID from the Gmail Reader node. I’ve set it up for you here: https://www.gumloop.com/pipeline?workbook_id=mqVDHKwPyTK3AmsQhBX46Y

Let me know if this makes sense and works for you :slightly_smiling_face:

Hey @Wasay-Gumloop! Thanks for your response.

It didn’t seem to work for me when I have 2 emails coming in, 1 email goes to True, 1 email goes to False, with this error:

 Nested Automation Failed!
Node 'Update Label' running in List Mode has an input 'thread_ids' which is a list of 2 items. This is not matching the size of another one of the inputs, which has 1 items.

Please make sure all lists that go into this node are the same size.

It does work if two of the emails are going to the True flow, but that means I can’t use the workflow.

I tried to use the Filter node, as suggested by Gummie, but it still is giving me a similar error

Node 'Filter' running in List Mode has an input 'filter_by' which is a list of 1 items. This is not matching the size of another one of the inputs, which has 2 items.

Please make sure all lists that go into this node are the same size

Could you help? Thanks a lot!

Hey @Paul – Can you share the run link so I view the inputs/outputs please? You can find the run link on the https://www.gumloop.com/history page or through the Previous Runs tab on the canvas.

You could resolve this with a subflow though: List Size Mismatch Errors - Gumloop

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