gmail-addons

Gmail Add-Ons onTriggerFunction only ran once per email even if opening the email again

浪尽此生 提交于 2019-12-03 02:40:10
We're building a Gmail Add-On however we wish to show a different card on depending on some business logic when the add-on's onTriggerFunction is called. This works fine for the first time the function runs when an email opens. We have the conditional logic, but Gmail appears to cache the result of the initial call returning the first card. Going to another email and back to original, the onTriggerFunction is not called again, so the conditional logic is not run to change the initial card rendered. Is there anyway to get the onTriggerFunction to run every time an email is opened, not just once

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

和自甴很熟 提交于 2019-12-02 06:52:47
问题 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") .addItem("Debit card", "contact", false) .addItem("Net banking", "lead", true) .setOnChangeAction(CardService.newAction().setFunctionName("onModeChange")); section.addWidget(payment); I expect something like setFunctionName("onModeChange").setParams(payment.value) 回答1:

Issues publishing a Gmail Add-on

送分小仙女□ 提交于 2019-12-02 06:27:27
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 . Can anyone please tell me how much time does it take for my submission to be reviewed? Or what are the steps to publish a public Gmail Add-on...? The ones in the guide don't seem to work. Also, the guide seems wrong, because it instructs users to first fill in the Marketplace SDK Configuration tab and there is no way to save that information because the 'Save changes' button is disabled. The

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

浪尽此生 提交于 2019-12-02 04:28:07
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") .addItem("Debit card", "contact", false) .addItem("Net banking", "lead", true) .setOnChangeAction(CardService.newAction().setFunctionName("onModeChange")); section.addWidget(payment); I expect something like setFunctionName("onModeChange").setParams(payment.value) I think that your script is almost the correct. You can achieve what you want by modifying a little. In

Google Apps Script Async function execution on Server side

故事扮演 提交于 2019-12-01 14:06:24
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 Script functions on the Server side asynchronous way, so I can return to a user some notification and continue work behind the scenes. I have tried using some libraries like this one but with no luck, I'm able to use syntactically the Promises but functionally it's still synchronous. As of now, there is no asynchronous execution for the Gmail add-on.

Publish Gmail Addon Select Extension

牧云@^-^@ 提交于 2019-12-01 13:21:59
I am trying to publish Gmail Addon which I create before. I follow that documentation https://developers.google.com/gmail/add-ons/how-tos/publish#publish_an_add-on . According the documentation I am reaching the API Console from Resources > Cloud Platform project. And install the Google Apps Marketplace SDK. I cannot save Configuration because of extension selection. I cannot select Gmail Addon extension checkbox. You can see the image Do you have any idea how I can solve this? Cheers. Prasanth Janardanan This is a bug on that page. (can't save "Apps Marketplace SDK" Configuration for Gmail

Publish Gmail Addon Select Extension

孤街醉人 提交于 2019-12-01 11:30:12
问题 I am trying to publish Gmail Addon which I create before. I follow that documentation https://developers.google.com/gmail/add-ons/how-tos/publish#publish_an_add-on. According the documentation I am reaching the API Console from Resources > Cloud Platform project. And install the Google Apps Marketplace SDK. I cannot save Configuration because of extension selection. I cannot select Gmail Addon extension checkbox. You can see the image Do you have any idea how I can solve this? Cheers. 回答1:

Google Apps Script Async function execution on Server side

隐身守侯 提交于 2019-12-01 10:47:17
问题 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 Script functions on the Server side asynchronous way, so I can return to a user some notification and continue work behind the scenes. I have tried using some libraries like this one but with no luck, I'm able to use syntactically the Promises but

Password type field in gmail card service

谁说胖子不能爱 提交于 2019-11-29 14:23:13
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? Sabbu 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. So, we can build a registration form using HTML and that can be served through authorization action.

Handling persistent user-specific values in Gmail Add-ons

馋奶兔 提交于 2019-11-29 07:19:41
I have created simple Gmail addon, now I'm struggling with below strategies. After installing the addon, when first inbox is opened, we ask basic info input from users, when he opens second mail we won't ask basic info details again. How I can handle this? I have tried property service but no luck. Update var MAX_THREADS = 5; /** * Returns the array of cards that should be rendered for the current * e-mail thread. The name of this function is specified in the * manifest 'onTriggerFunction' field, indicating that this function * runs every time the add-on is started. * * @param {Object} e data