Skip to main content
Question

Help Needed: Zapier Zap Not Removing Gmail Label from Sent Emails


Hi everyone,

I'm having trouble with a Zap in Zapier, and I'm hoping someone can help. Here’s the setup and issue:

Zap Purpose:

  • Create a calendar meeting based on details in a Gmail email.
  • Trigger: I apply a specific label to a sent email in Gmail.

Steps:

  1. The Zap triggers successfully when the label is applied.
  2. The Zap processes everything and completes its actions successfully.
  3. As the final step, I want the Zap to remove the label from the email that triggered it.

Problem:

  • The label removal step works fine for newly created emails.
  • However, when the triggering email is a reply to an existing thread, the label removal fails.
  • I’ve tried using both the Message ID and the Thread ID to identify the email for label removal, but neither approach works for replies.

Any ideas or suggestions to resolve this issue?

Thanks in advance for your help!

 

Zap overview

 

I am selecting a static name for the Label. Here.  

 

When I test the step.  It is successful but the label remains on the email.

The Labels remaining on the email should be there

 

 

Did this topic help you find an answer to your question?

5 replies

  • Author
  • New
  • 2 replies
  • January 16, 2025

Update.  If I custom data type Thread_ID selected from step one.  I get this error.

 

 


Forum|alt.badge.img+3

Add a filter step to check if the email is a reply or part of a thread. Use conditions like "Subject contains 'Re:'" or "In-Reply-To header exists" to differentiate between new emails and replies

 

OR

 

Before removing the label, add a "Find Email" step using the Message ID or Thread ID to ensure the correct email is being targeted.


  • Author
  • New
  • 2 replies
  • January 16, 2025

@pranayshinde  I tried this step and found out a little more about how the labels are applied in Gmail. 

 

I was able to find the emails using ID from the Find Email step.  Not Message_ID, or Thread_ID and could remove the label.   I then repeat the find step a few times and found that the label I applied in Gmail was applied to every message in the thread.   


Repeating the FIND Email, Remove Label steps 3 times, I could remove the label from each message in the thread, and the Label does not show up on the message in Gmail inbox antmore.  ​​​​​​​​​​​​

 

Someone needs to look at how the remove label block works.  Add a configuration that asks if you want to remove the label from every message in the thread for example. 

 

If anyone knows how to add a label to a specific message in a thread that could work for me as well.

 

 

 

 


Forum|alt.badge.img+3
dcrymble wrote:

@pranayshinde  I tried this step and found out a little more about how the labels are applied in Gmail. 

 

I was able to find the emails using ID from the Find Email step.  Not Message_ID, or Thread_ID and could remove the label.   I then repeat the find step a few times and found that the label I applied in Gmail was applied to every message in the thread.   


Repeating the FIND Email, Remove Label steps 3 times, I could remove the label from each message in the thread, and the Label does not show up on the message in Gmail inbox antmore.  ​​​​​

 

Someone needs to look at how the remove label block works.  Add a configuration that asks if you want to remove the label from every message in the thread for example. 

 

If anyone knows how to add a label to a specific message in a thread that could work for me as well.

 

 

 

 

Good to know it worked. How about playing with loops in Zapier to remove labels from all messages in a thread? 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • February 6, 2025

Hi there, ​@dcrymble 👋

How did you get on with pranayshinde’s suggestion of using loops to remove the labels from each message in the thread?

Let us know if you ran into any issues on that or have any questions! 🙂