gmail-addons

Multiple emails selected messageMetadata.accessToken

柔情痞子 提交于 2019-12-18 09:44:41
问题 Is it possible to process multiple selected emails by an addon? The code from Google shows how to process only one selected email. I suppose 'e' would be some kind of array of accesstokens but I don't know how to access it. function getContextualAddOn(e) { var accessToken = e.messageMetadata.accessToken; Logger.log("token:"+ accessToken); GmailApp.setCurrentMessageAccessToken(accessToken); var messageId = e.messageMetadata.messageId; var card = createCard(); return [card.build()]; } Thanks.

Password type field in gmail card service

孤街醉人 提交于 2019-12-18 08:41:19
问题 Right now, in gmail appscript we don't have any option to add a password type field. Gmail Card Service for add-on has a very good ability to show any thing in it. We can integrate with any app which has basic REST api. We need authentication for that which commonly need password type field. Any work around to show password type field? 回答1: As of now, there is no support for password field in Gmail add-on. But we can build a hack for it. I hope password is needed only in registration forms.

Password type field in gmail card service

此生再无相见时 提交于 2019-12-18 08:41:05
问题 Right now, in gmail appscript we don't have any option to add a password type field. Gmail Card Service for add-on has a very good ability to show any thing in it. We can integrate with any app which has basic REST api. We need authentication for that which commonly need password type field. Any work around to show password type field? 回答1: As of now, there is no support for password field in Gmail add-on. But we can build a hack for it. I hope password is needed only in registration forms.

Google gmail script that triggers on incoming email

陌路散爱 提交于 2019-12-13 12:15:26
问题 I've been reading through gmail addons. They have contextual triggers that trigger when you open an email. Is it possible to trigger a service when an email is received by me? Best I can find is unconditional but that only triggers when the email is opened. 回答1: You can't create a trigger for every email, however you can do something similar as described in this answer. For example you can: Set up a filter that puts a special label on incoming emails that you want to process. Set up a

Send mail using custom button created using inboxsdk?

孤街醉人 提交于 2019-12-11 17:53:00
问题 I am creating chrome extension for gmail, I want send a mail when user click a button created by my extension. I am using inboxsdk for creating extension. I am creating button using following code InboxSDK.load('1', '**************').then(function(sdk){ // the SDK has been loaded, now do something with it! sdk.Compose.registerComposeViewHandler(function(composeView){ // a compose view has come into existence, do something with it! composeView.addButton({ title: "button-title-goes", iconUrl:

getAttachments() in GmailApp doesn't include linked files from GDrive

╄→尐↘猪︶ㄣ 提交于 2019-12-11 14:39:40
问题 I am developing an add-on for Gmail. I use Google Apps Script builtin service GmailApp to fetch data from Gmail servers. I have a need to read both attachments and files linked from GDrive in a message. The builtin GMailMessage.getAttachments() is returning only the standalone attachments but not the files linked from GDrive. The intention of the API is right, those are not attachments. But I just wanted to know is there a way I can query Gmail to fetch me those linked files. I have

Any way to show two widget side by side in gmail add on?

青春壹個敷衍的年華 提交于 2019-12-11 08:58:32
问题 I am creating a gmail add on - Requirement I want to include a button and key value add-on on the same row - Status Currently only one widget can be shown on 1 line Is there any way to show two widgets side by side ? 回答1: Take a look at the screenshot below [ 1 We got around this by adding a setOnClickAction and setButton method on a key value pair. Both "Activities" and "+New" are clickable and perform different actions. activitiesListSection.addWidget(CardService.newKeyValue() .setContent("

A weird run time error in gmail addon - MessageAccessToken error

巧了我就是萌 提交于 2019-12-11 02:56:30
问题 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(); card.setHeader(CardService.newCardHeader().setTitle('Home')); var section = CardService.newCardSection(); section.addWidget(CardService.newTextParagraph().setText("hello world")); return card.build(); } I do not have a file called Storage, though. "SyntaxError:

Google script gmail addon update TextInput value,on change function

六月ゝ 毕业季﹏ 提交于 2019-12-11 01:05:13
问题 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 = CardService.newAction().setFunctionName('clientId_callBack'); CardService.newTextInput() .setFieldName("clientId") .setTitle("Please enter clinet id") .setOnChangeAction(client_action) function clientId_callBack(e){ Logger.log("%s",JSON.stringify(e)

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

点点圈 提交于 2019-12-10 11:43:52
问题 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 now, I don't care about the position of the icon with counter and email text, I want them in the same row doesn't matter left or right . This is my code which is just showing icon with counter on the left side but not able to add email text anywhere