Getting thread id's of selected Emails in Gmail, using Google Apps Script

194 Views Asked by At

I am currently working on creating a Gmail Add-on. For this Add-on I would very much like to get the Thread Id's of the Threads/Mails I select in my inbox.

I have been looking extensively through the reference and the examples, but can't find any way of doing this?

When I open a thread/mail I get a trigger which sends an event object to my script, from where I can get the current mails Thread Id. But I can't seem to get an action trigger from selecting the mails or otherwise access the id's of selected mails.

Can anyone point me in the right direction, or is this just not doable?

Kind regards

Dennis Schmock

Picture here

0

There are 0 best solutions below