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

How to get the selected value of a selectbox and pass it to an action?

I need to pass the value of the selectbox to it's widget's handler function var payment = CardService.newSelectionInput() .setType(CardService.SelectionInputType.DROPDOWN) .setTitle("payment mode") .setFieldName("payment_mode") …
hhsb
  • 560
  • 3
  • 23
2
votes
1 answer

Do we have a selectbox widget for gmail add-ons?

Right now I use radio buttons instead of selectbox. But I prefer selectboxes. Do we have one for gmail add-ons ?
hhsb
  • 560
  • 3
  • 23
2
votes
1 answer

get current thread id in gmail using google app script

I am building a Gmail Add-On. I want to get the thread Id of current open email thread using Google Apps Script. I tried to figure out in Google Developers documentation for GmailApp. But nothing found relevant.
Jai Prak
  • 2,855
  • 4
  • 29
  • 37
2
votes
0 answers

gmail add on multipart/form-data app script

i'm building a gmail add on application to read a current email and retrieve the gmail attachment associated with the email. Once I get the blob of the attachment I try to upload it to my API via a multipart/form-data post request. Currently, my…
2
votes
0 answers

Publish a Gmail Add-on

I'm planning to launch a simple Gmail Add-on. I've followed every step in the publishing guide and filled the submission form. However, it's been two weeks now and I've yet to receive any response. Also, the guide seems wrong, because it instructs…
Dănuț Mihai Florian
  • 3,075
  • 3
  • 26
  • 44
2
votes
0 answers

Implement Implicit Grant in Google Apps Script

I want to implement Oauth2 Implicit Authorization Flow with Gmail Add-Ons. I have used Apps Script's new StateTokenBuilder and /usercallback endpoint to handle the redirects. For the same, I have created the Authorization url on which user is…
2
votes
1 answer

Gmail add-on define pattern for the urlFetchWhitelist

I'm creating a Gmail add-on and one of the use cases is that user could define a server URL from which the data should be fetched. However, the URL always will have trailing part in the domain name https:// [part which user defines]…
vzhemevko
  • 815
  • 8
  • 25
2
votes
1 answer

Publishing a Gmail addon

When trying to publish my Gmail addon I get this error from the Chrome web store: API Console project with the id specified in the manifest's api_console_project_id field, does not have Google Apps Marketplace SDK enabled. I've enabled the…
kambi
  • 3,291
  • 10
  • 37
  • 58
2
votes
1 answer

CrossClient Authorization between Server and Gmail Addon

Background: This is about using a Gmail Addon created using Google App Script. When the user installs the addon, there is the OAuth Consent Screen where user provides his consent to allow the "Product name shown to users" (as configured in the OAuth…
2
votes
2 answers

Google Apps Script Async function execution on Server side

I have a GMail add-on which uses CardService for UI. Some of the callback functions for the Card actions take over than 30 sec. Thus, I'm getting the following error. Gmail could not perform this add-on action. Is there, any way to run Google Apps…
vzhemevko
  • 815
  • 8
  • 25
2
votes
2 answers

Google App Script Get Form Data From Card Action

I'm working on a card service script and am having some difficulties with the action handler. I have two drop downs on a CardService, one is product_category and the other is sub_category. // created as (and the following sub_category) var…
Rem
  • 359
  • 1
  • 5
  • 15
2
votes
2 answers

Google app script,gmail addon align action center and styling of TextInput

I have create simple gmail addon using google script,in that i have struggle here, i have used simple card,the problem is,we need align action button at center of the card and apply css styles to TextInput i have refer the document,but dont find any…
Robert
  • 3,373
  • 1
  • 18
  • 34
2
votes
2 answers

Writing Add-on manifest files

I created a GAS script file on my Drive using the example from Packt's book 'Learning Google Apps Script. My question is how do I make this into an Add-On. Not quite sure on the manifest file I need to create (even after reading…
2
votes
2 answers

How to install developer add-ons for Gmail in G Suite accounts?

I am able to setup an Apps Scripts project to create a gmail add-on and can test it out using an @gmail.com account but the option to install developer add-ons does not show up in my G Suite account. Alternatively, how do you deploy a gmail add-on…
Pathead
  • 717
  • 10
  • 24
2
votes
2 answers

how can i get avatar (profile picture) of email id in gmail addon

I want to read a particular thread of email and get its email ids, in to,from,cc. also I want to get their profile pictures and name to display in the addon. I tried to get using metadata but was not able to get it Note : I am able to get the email…
makk patel
  • 21
  • 2