Gmail: Watch threads
planned
A
Arnab Chakraborty
Mathias Barea : I am playing with the gmail trigger, more precisely with the watch emails trigger. The problem I have by watching emails is that when used for clickup task creation and I got multiple emails on the same thread (same subject) multiple clickup tasks with the same name gets created and that's not what I want. Zapier has a "Watch Threads" which solves this problem, do you have something similar, is there any workaround to avoid multiple executions over same email thread?
Log In
Tereza Klobouckova
marked this post as
planned
Herschel Uchitelle
I was struggling this this for a while but I believe I have found a good work around using the Mailhook module.
In my case I was trying to watch incoming email threads and create new Jira issues just for the first email in the thread. Using the mailhook module I can forward all the emails that I need to watch using a specific filter on the Gmail side of things to my Integromat scenario. Then I have a router with filters looking at if the incoming message has a "reference-id" listed in the Headers data, meaning that it was made in-reply to a previous email. If it does not, the scenario will create a new Jira issue and store the "message-id" in a custom property. If the message does have a "reference-id" the scenario will use a Search module to look if there is a previously created Jira issue that has a "message-id" field that matches the "reference-id" of the incoming message. If there is an existing issue that matches, then no new issue will be created. If not, a new issue will be created that records the message's first "reference-id" in the custom Jira field for later reference.
I am still tweaking the scenario but so far it seems to be working well. There are some requirements that could prevent this work around from being used in all cases:
- I do not know if all email providers pass along the same data with formatting necessary to be able to extract the email message id and reference ids
- You need to be able to store this message id data in way that you can then have the Integromat scenario search. In my case I can do this using a custom field on the object that is created from the scenario, but I think you could probably also achieve this using a data store module or google sheets or something if the app you are working with does not have this capability.
Mara Milani
Mara Milani
Alternatively, ANY way of achieving this would work in the meantime. I have tried everything I could think of, but because get Thread ID isn't a module option, I really don't think there is a way to get this to work. Am I wrong?
Mara Milani
Michal Máša is there even a tentative ETA for this feature? I need to know if I can stick around or should I just go to Zapier. Thanks
Michal Máša
Mara Milani: A completely rewritten Gmail app is scheduled for 2020 Q3.
Mara Milani
Yep same here - really struggling with this.