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

Can't access Gmail Drafts via Gmail Add-ons

I am trying to access all the drafts in Gmail using Gmail Add-ons, but it logs error like this Access denied: : Missing access token for per message scope authorization. [line: 8, function: buildAddon, file: Code] My onTrigger function looks…
shafkathullah
  • 313
  • 5
  • 16
1
vote
1 answer

How to use access tokens for Gmail apps?

I am trying to create a Gmail add-on scope access token, my current goal is to somehow get the selected message's attachments and content in Spreadsheets. function onGmailDo(e) { var sheet = SpreadsheetApp.openByUrl( …
ioanna
  • 11
  • 3
1
vote
0 answers

Universal Actions not showing in Gmail Addon in Phone

I made a gmail addon, its working on web as well as Gmail app, but I am not getting universal actions in the Gmail app. It is coming in other apps (attached the screenshot of slack). Universal Actions of my slack's Gmail addon is showing in gmail…
1
vote
2 answers

Putting a stop to fake emails from our leadership team... how do I deploy my script?

Tired of my G Suite users falling for emails "from" our CEO and other leadership team members, and the [EXTERNAL] that I appended to the subject of all external emails has been great but not helping everyone. I have written a Google Apps Script that…
1
vote
1 answer

Pass all parameters from CardService Card builder to a function

I've prepared my CardService Card: return CardService .newCardBuilder() .setHeader( CardService.newCardHeader() .setTitle('Elenco operazioni rapide') .setSubtitle('Inserisci rapidamente gli eventi con questi tasti')) .addSection( …
1
vote
0 answers

Is there any way to refresh the compose window through a Gmail Addon?

I've created an addon that, upon user request, replaces the attachments with a password-protected zip. It basically reads the draft and updates it with the new attachment, thus removing the previous ones, using something like…
1
vote
1 answer

Log-in to an external site from Gmail Addon

First of all, sorry for my bad English :) I am building a Gmail addon which integrates file uploading to an external website using their API. The API have an auth endpoint which uses plain authorization flow i.e. takes email and password of a user…
Awais Umar
  • 2,027
  • 3
  • 27
  • 46
1
vote
1 answer

Changing the value of event in CardService.newTextInput does not change the displayed value in textinput in gmail addon

I have simple gmail addon in which i am trying to make custom login form. The problem i am facing is that when i am changing the input field from on Change handler the displayed value is not changing . Trying to hide the password field. Textinput…
1
vote
1 answer

Can't serve HTML on the Google Apps Script callback page in a GMail add-on

I am working on a GMail add-on that connects to a third-party service through OAuth2. To obtain the authorization code the following redirect URI is used: https://script.google.com/macros/d/[SCRIPT_ID]/usercallback . Here's a snippet that triggers…
1
vote
1 answer

I have written a nodejs application to manipulate Google sheets. How to convert this to an add-on?

This application uses the google sheet to get information, add them to a different sheet, downloads that sheet and sends that sheet as a mail using nodemailer. How can the firing of this script take place from the google sheets interface?
1
vote
0 answers

Lack of permission to publish change

we need help to be able to publish some changes to our gmail addon configuration. The original developer who submitted the addon for review has since left the company. Now I need to make some changes to the marketplace listing for the gmail addon,…
Alex
  • 51
  • 1
  • 5
1
vote
1 answer

How to implement Gmail Smart-Compose feature in my project using Gmail API?

I wanted to use the Gmail smart compose feature in my project. I read many documents but no documents suggest anything related to the implementation of smart compose in Gmail API. Attaching a link below about the small information about the…
1
vote
1 answer

Gmail addon - compose trigger select action without Card / UI

Following this tutorial, I could create a new icon in Gmail compose UI which opens a Card, let's the user choose a photo, and inserts it into the email. How can I directly insert the image once the icon is clicked on? This is going to be a frequent…
Hesam
  • 39
  • 1
  • 6
1
vote
1 answer

How can I revoke all assigned tokens and perform Logout in my Gmail Add-On by connecting to a non google service

I am developing a Gmail Add On which is using a non-Google Service Authorization as a login. After the successful login, the user receives a JWT token which gets stored under 'PropertiesService.userProperties'. Now I want to add a logout option to…
1
vote
1 answer

Is there a documentation on event object formInput field?

I'm trying to create my own Gmail Add-on with Google Apps Script, and looking at some of their samples (for learning). I can't determine how to use/edit an event, e['forminput']; and I've been unable to find specific documentation that answers this…
Line49
  • 11
  • 2