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
2
votes
1 answer

Testing gmail addon

I've created a gmail addon which uses oauth to make external api calls using UrlFetchApp and then uses cards with CardService to show some info. It all works but there's no documentation on the gmail addon page about how to test the addon. My goal…
aandis
  • 4,084
  • 4
  • 29
  • 40
2
votes
0 answers

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

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…
2
votes
0 answers

Password field in Gmail add-on

I'm new to Apps Script. I have created the login form using the card services in the Apps Script. I have created the text field for getting the username from the user. Like that, I also want to create the password field to get the password from the…
Manikandan C
  • 668
  • 1
  • 9
  • 22
2
votes
0 answers

Problems with Japanese Characters (あ, い, う, え, お) in the Gmail subject

We implemented a function to create drafts using Compose Actions. However, the subject is garbled. If the subject is あいうえお, it will be Re: BDFHJ. I want to prevent garbled characters. this code. Code.js function buildCard (e) { var card =…
haneta
  • 21
  • 2
2
votes
0 answers

Alternatives to ScriptApp scope usage in GMail Add-on

I'm trying to publish a GMail Add-on with a scheduler functionality and using the Google Apps Script's built in trigger functions to achieve the goal. However when I try to deploy the add-on I get the below error message. Gmail add-ons may not…
WebHoundX
  • 153
  • 1
  • 6
2
votes
0 answers

What is the equivalent of setInterval that can be used in a gmail addon (Google App Script)

In the Gmail addon, I am building I need to hit an external API every few minutes to check for a flag and then reload the addon. The closest I can see is this :…
Curious Explorer
  • 357
  • 2
  • 14
2
votes
0 answers

How to prevent Gmail Add-on (gadget) from caching?

I am debugging a Google Apps Script and the UI on the right side of the page (Gmail addons). However, each time I load an add-on then reloading the same Gmail message will not regenerate that add-on for 10+ minutes. How can I disable this cache to…
William Entriken
  • 37,208
  • 23
  • 149
  • 195
2
votes
1 answer

A weird run time error in gmail addon - MessageAccessToken error

The add on was running finely. At some point of time , this error started showing up only for one user. Other users dont experience this. function buildAddOn(e) { //Add on trigger function var card = CardService.newCardBuilder(); …
hhsb
  • 560
  • 3
  • 23
2
votes
2 answers

Open a draft email after creating it

I would like to know if there is the possibility to open a draft directly after it's creation. After getting a file in a distant server, I would create an empty draft and I would like to open the draft message, so that I can fill it. Here is my…
Albenss
  • 73
  • 9
2
votes
1 answer

Missing gmail plugins

So I received 2 emails with the same content but different senders. In the first email, the plugins are missing. While in the second one, all my plugins are visible. I tried checking the original content and in the first email, the SPF status is…
Rogin Neil
  • 55
  • 1
  • 7
2
votes
2 answers

Handling Gmail Addon Timeouts

I'm trying to upload a larger size document from a gmail add on but I keep getting "Gmail could not perform this add-on action" when I try to hit my endpoint because it takes too long and I "Exceeded maximum execution time" of 30 seconds. Is there a…
JKhoo
  • 41
  • 1
2
votes
3 answers

Gmail add-on - callback from newOpenLink is not called

No matter what I do - my callback from newOpenLink() is not called. Code below is showing what I do: 1. I open link to a page on our server that gets some info 2. I use a string in "redirect_uri" part of the query string to reload page 3. page…
Sam
  • 31
  • 3
2
votes
2 answers

Gmail add-ons not available in mobile website?

This page states: The contextual cards you create for your add-ons work for both web and mobile versions of Gmail. This means that you don't need to create separate web and mobile versions of the add-on — the same code works everywhere! Note: Gmail…
Basj
  • 41,386
  • 99
  • 383
  • 673
2
votes
1 answer

HTTP failure callback for UrlFetchApp.fetch() in gmail addon

I would like to write a callback when a HTTP requests fails. How do I chain it to UrlFetchApp.fetch()? Please refer to the HTTP request below. // Make a GET request. UrlFetchApp.fetch('http://www.google.com/');
hhsb
  • 560
  • 3
  • 23
2
votes
2 answers

How to tell if SelectionInput checkbox is checked or not in callback?

How can you tell if a SelectionInput checkbox item is checked in a callback? I have the following: section.addWidget(CardService.newSelectionInput() .setType(CardService.SelectionInputType.CHECK_BOX) …