google-apps-script-addon

Google Apps Script - How to get corresponding record in destination spreadsheet in onFormSubmit (Google Forms Event)?

匆匆过客 提交于 2021-01-28 07:04:18
问题 I catch this event when a respondent sends a response https://developers.google.com/apps-script/guides/triggers/events#form-submit_4 Inside this function, I want to add some information into the corresponding row (Google creates this row automatically) in the destination spreadsheet In order to do that, first I need to find this row The best way I can find at the moment is by using sheet.getLastRow() https://developers.google.com/apps-script/reference/spreadsheet/sheet#getlastrow But there is

G Suite Marketplace Add-on OAuth: Error 400: invalid_request Account restricted

泄露秘密 提交于 2021-01-28 05:13:31
问题 Has any Google Add-on developers received this error when a user trys to install: Error 400: invalid_request Account Restricted This only happens to some users even if the app is whitelisted in the domain admin console of the user. Our app is listed on the G Suite Marketplace and is approved and verified, the OAuth consent screen works for most users. The user is able to see the consent screen but as soon as they click Accept they get this error: 回答1: I had the same issue with one of my G

How to force the gmail inbox to reload/refresh?

不打扰是莪最后的温柔 提交于 2021-01-01 06:28:53
问题 I have built an application that uses the import endpoint in the Gmail API Gmail.Users.Messages.import() to clone an email message but allow for subject changing. It then deletes the original/old message using the remove endpoint Gmail.Users.Messages.remove() I would like a way to refresh the Gmail inbox UI or even to just reload the web page from Google Apps Script - however, I'm not aware of how to do this - and a look around the internet hasn't proven especially helpful. 回答1: Unfortunately