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

**URL:** https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092
**Category:** Get Help
**Tags:** Gmail-Reader, Gmail-Updater
**Created:** [March 24, 2025, 8:02am UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092 "2025-03-24T08:02:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.gumloop.com/u/Paul)
#### Post date: [March 24, 2025, 8:02am UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092/1 "2025-03-24T08:02:09Z")

</div>

I have a pipeline configured like this: [https://www.gumloop.com/pipeline?workbook\_id=kT8zuE8VdG85qvS4E5wr8c](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?

---

<div class="post-metadata">

### Author: ![Gumloop\_Bot](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/gumloop_bot/32/504_2.png) [@Gumloop\_Bot](https://forum.gumloop.com/u/Gumloop_Bot)
#### Post date: [March 24, 2025, 8:02am UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092/2 "2025-03-24T08:02:13Z")

</div>

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](https://canada1.discourse-cdn.com/flex027/uploads/gumloop/original/1X/92c00c612fd65b861e706dd1b5eec5ec61677835.gif)

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

You can find your run history here: [https://www.gumloop.com/history](https://www.gumloop.com/history)

---

<div class="post-metadata">

### Author: ![Wasay-Gumloop](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/wasay-gumloop/32/69_2.png) [@Wasay-Gumloop](https://forum.gumloop.com/u/Wasay-Gumloop)
#### Post date: [March 24, 2025, 12:49pm UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092/3 "2025-03-24T12:49:44Z")

</div>

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](https://www.gumloop.com/pipeline?workbook_id=mqVDHKwPyTK3AmsQhBX46Y)

Let me know if this makes sense and works for you 🙂

---

<div class="post-metadata">

### Author: ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.gumloop.com/u/Paul)
#### Post date: [March 26, 2025, 12:12pm UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092/4 "2025-03-26T12:12:19Z")

</div>

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:

```auto
 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

```auto
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!

---

<div class="post-metadata">

### Author: ![Wasay-Gumloop](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.gumloop.com/wasay-gumloop/32/69_2.png) [@Wasay-Gumloop](https://forum.gumloop.com/u/Wasay-Gumloop)
#### Post date: [March 26, 2025, 9:38pm UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092/5 "2025-03-26T21:38:52Z")

</div>

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](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](https://docs.gumloop.com/common_errors/list_size_mismatch)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/gumloop/original/1X/d02ff8efcde6ac5d3ac8aa0376137d5f804da549.png) [@system](https://forum.gumloop.com/u/system)
#### Post date: [March 31, 2025, 9:39pm UTC](https://forum.gumloop.com/t/how-to-keep-gmail-thread-ids-after-if-else-for-labelling/2092/6 "2025-03-31T21:39:52Z")

</div>

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