google-apps

Checking if an email is valid in Google Apps Script

守給你的承諾、 提交于 2019-12-06 08:17:13
I'm using the built-in api for scripting against Google Spreadsheets to send some booking confirmations, and currently my script breaks if someone has filled in an invalid email. I'd like it to just save some data to a list of guests that haven't been notified, and then proceed with looping through the bookings. This is my current code (simplified): // The variables email, subject and msg are populated. // I've tested that using Browser.msgBox(), and the correct column values are // found and used // The script breaks here, if an incorrect email address has been filled in MailApp.sendEmail

What is the substitute for hosting images in google site from Google Drive using Google Apps Script? [closed]

夙愿已清 提交于 2019-12-06 07:35:52
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . It was very simple before, simply using the URL https://googledrive.com/host/ {file_Id} but, the problem arises because the web page hosting is being discontinued by Google? You can check the Google Policy in the link here. Yash Gupta First, we need to get the byte form of image stored in the drive, to do that use Utilities class of app script and encode that in base64 format var base64_Encoded_Image= Utilities

Issue with creating an “old-fashioned” mail merge with Google Apps Script

白昼怎懂夜的黑 提交于 2019-12-06 07:32:30
问题 This is a followup to a question I asked yesterday on the Google Apps Script Office Hours Hangout. The goal of my final script is to create an election process for student elections at the high school where I work using Google Forms. The script has three parts: 1) Create Unique "Voting IDs" (a random 6-digit code) 2) Merge the student data (Name, Homeroom, & Voting ID) on with a template document that will create specific voting instruction for each student. (i.e. an old-fashioned mail merge)

Restrict Google account logins to a specified Apps domain

≯℡__Kan透↙ 提交于 2019-12-06 07:28:51
问题 How can I let users log in to my web app with their Google account, and verify that they logged in from a certain Google Apps domain? Does the hd parameter to the Google Authorization service ensure that only the selected domain can be used to login? Or can I get the logged in user's email and verify that it ends with "@domain.com"? This doesn't seem like such a good idea. After login I also need to access the users' Google Contacts, which according to the documentation requires AuthSub proxy

Manage Google Apps Script execution failure notifications for triggers

◇◆丶佛笑我妖孽 提交于 2019-12-06 06:54:27
问题 Is it possible to manage failure notification for triggers in Google Apps Script via script code? I know that it is possible from Google Apps Script console, but I want to remove notification via function in my code, where I add time based triggers. Or is there any other way to remove this kind of notification? 回答1: The answer is no, unfortunately. The only way to manage these notification emails is via the UI. You can check the documentation here: https://developers.google.com/apps-script

Importing data from pipedrive API in Google sheets. How to copy the data into the sheet in the correct columns and rows

本小妞迷上赌 提交于 2019-12-06 06:18:27
I am trying to import all Pipedrive deals and writing the information I need in Google sheets. What I am already able to do: Access the feed and parse the data to a variable. And print this variable into 1 cell. Of course this isn't workable yet. The code is somewhat scavenged (building while I'm learning) // Standard functions to call the spreadsheet sheet and activesheet function alldeals() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheets = ss.getSheets(); var sheet = ss.getActiveSheet(); //the way the url is build next step is to itterate between the end because api only allows

Authenticate Google App users with Google OAuth2 API

一世执手 提交于 2019-12-06 06:09:49
问题 I'm wondering if I can use the google client api (java) to authenticate the users of a google apps domain to my application. The target application is a web application using a REST backend (jersey). The documentation isn't very clear (or I misunderstood it), and the samples in the documentation refers to deprecated classes... Does someone knows if it's possible and the best way to do it. A code sample would be appreciate. 回答1: Google Apps accounts should work fine with the APIs. The only

Google Multiple Sign-ins - Is there a way to specify the account in the URL?

我只是一个虾纸丫 提交于 2019-12-06 03:52:17
问题 We recently switched our team to Google Apps and with that, everyone got a Google Apps account . However, for those of us with a GMail account as well, this makes it so that bringing up Gmail in your browser opens up either your personal account or your Google apps account. Even though GMail has multiple Sign-ins enabled for both of my accounts, I still have to spend time switching through both accounts. I was wondering if there was a way to specify the account I wanted to use in the URL

Google Form output to remote MySQL database

狂风中的少年 提交于 2019-12-06 03:06:28
问题 I have a Google Form I created. I have a website with a remote MySQL database. I would like to embed the Google Form into my site (this I've figured out), however instead of the data from form submission being stored in a Google Spreadsheet(s), I'd like the data to be sent to my MySQL database, to a predefined table designed to accept the data types being collected and validated for in the Google Form. I have researched and come across Google Apps Scripts (https://developers.google.com/apps

Google Apps Script Add-On Source Code/Security

£可爱£侵袭症+ 提交于 2019-12-06 02:33:51
I'm building a Google Apps Script Add-On and wanted to know whether anyone can access the underlying source code when I publish it to the Marketplace? I want to store a password/private key in the code and wanted to make sure no one who installs the app can access it. Using a Google Apps Script Library allows a user to use their own script to step into the source code, so that's an example of a public library whose source code is visible to the end user. Failing that, is there a better solution for storing a password/private key? Thank you. From the comment by St3ph You can check this page