Questions tagged [gmail-addons]

Questions related to Gmail Add-ons, the modern developer platform that allows custom sidebars and buttons to be added to the Gmail user interface.

A Gmail Add-on is a standalone Google Apps Script project. Its purpose is to improve productivity and help the user perform an action directly from the Gmail page without leaving it.

The language used, Google Apps Script, is a server-side scripting language based on JavaScript 1.6. All add-ons use a "card"-style UI, to enable a common appearance on all platforms.

387 questions
4
votes
1 answer

Google script gmail addon update TextInput value,on change function

I have create simple gmail addon using google script,in that i have struggle here, how to update textinput value on setOnChangeAction Method ,i have checked the document, i couldn't find any methods The below code i have tried, var client_action =…
Robert
  • 3,373
  • 1
  • 18
  • 34
4
votes
1 answer

Gmail add-on in Android Gmail App not displaying

My question is similar to this one: I am building a gmail add-on and would like to test it on my Android phone's gmail app. Additionally, I have two add-ons installed from the Google Play store -- Asana and Trello. However, none of the add-ons show…
4
votes
1 answer

How to implement a date picker?

What's the best way to implement/show a date picker UI in a card/widget in Gmail add-on? My use-case is showing the user's calendar events for a selected date. Any help is greatly appreciated in advance!
Maximus S
  • 10,759
  • 19
  • 75
  • 154
3
votes
1 answer

My add-on will not run on messages in the SPAM folder

When I try to activate my add-on for a message in the SPAM folder it tells me "Spam and suspicious messages can’t be used for recommended content or actions." How do I make it work? function getContextualAddOn(event) { var message =…
Neal
  • 197
  • 1
  • 16
3
votes
1 answer

How to work around maximum execution time when uploading to S3 Bucket?

I am using the S3-for-Google-Apps-Script library to export full attachments from Gmail to an S3 bucket. I changed the S3 code to upload the actual content of the attachment rather than an encoded string, as detailed in this post. However, when…
nirmalb
  • 33
  • 4
3
votes
1 answer

Clear the navigation stack after Logout - Gmail add-on

I have a gmail add-on with CardAction - Logout: And if in stack navigation there are few cards and user make "Logout" - appears "Back Arrow": This is my logoutAction, it works fine, but do you have any ideas how to disable this…
3
votes
2 answers

Google App Script / Gmail add-on : How to display a window with text and buttons over Gmail?

I made a Google App script to answer automatically to my emails (a kind of clever email robot assistant). Nevertheless, I would like to check each answer made by the robot before sending. So I would like to have a window over Gmail showing the user…
3
votes
1 answer

Possible to have multi-select field in a Gmail Addon?

The documentation for Cards in Gmail Addons only seems to mention basic fields like Text and Select. I was hoping to implement a multi-select / typeahead field but am not sure this is possible. It's my understanding that only the 'Card' part of that…
user161592
  • 358
  • 1
  • 2
  • 12
3
votes
2 answers

How get textinput value on gmail addon

I create a Gmail add-on with a form. In this form, I have input but in my script, I can not find how to retrieve the value of input in variables. The following code opens a sidebar in the Gmail inbox when you click on an e-mail and fill in the…
3
votes
3 answers

How to load Gmail addon without opening mail message

We need to develop the gmail addon to read the checked mail messages and process the content.We are using the below application json: { "oauthScopes": [ "https://www.googleapis.com/auth/gmail.addons.execute", …
GVW
  • 31
  • 2
3
votes
0 answers

gmail message id to url mapping

I am using gmail API https://developers.google.com/gmail/api/v1/reference/users/messages/get to get messages However, the API require "id:The ID of the message to retrieve." Is there a way to get this message id from the gmail web interface? Is…
gggg
  • 43
  • 5
3
votes
0 answers

Multiline TextInput height in Gmail Addon

I am populating email body in a TextInput which is set to display in multi-line mode. Now since the email body is large, rest of the add-on content is obviously pushed way down the screen. In order to prevent that i decided to populate email body…
3
votes
1 answer

Gmail add-on connecting to non-Google Services without oAuth

Is it possible to authenticate to third-party service in G-Suite (Gmail) Add-ons, but without oAuth. The service I want to authenticate works on REST API and has no oAuth support. The best for me would be to open a new window (as with oAuth), login…
Niko
  • 812
  • 9
  • 22
3
votes
1 answer

Gmail addon action when user is composing a message

Is it possible to create an action to trigger a function whenever the user is composing an email? I am hoping to add an extra button to the UI for composing emails which will insert some text into the email based on the subject and recipients of…
Rafty
  • 653
  • 2
  • 8
  • 23
3
votes
1 answer

How to create this UI in Gmail Add-on using Google Apps Script

Can someone tell me how to achieve below UI in Gmail Add-on using Google Apps Script? I tried KeyValue for the icon with text which is clickable and I am able to achieve that but I don't know how to put email text, next to the keyValue icon. Right…
Jai Prak
  • 2,855
  • 4
  • 29
  • 37
1 2
3
25 26