Get current email's URL Google scripts

Viewed 77

Is there a way for my gmail addon to get access to the current gmail message URL?

I know you can normally do it using window.location.href but since you don't have access to the window object from google scripts that doesn't work.

Is there any alternative to do this?

I already searched through the docs many times for something like this but everything is either for spreadsheets or web apps but not for gmail addons.

Goal:

When the user submits his message a link to the current email will be added to the message.

example image

I want to get this URL.

0 Answers
Related