google-apps-script

Run Google Apps Script in Android

≡放荡痞女 提交于 2020-02-07 11:20:59
问题 I am trying to run an Apps Script script in Android. Here is my script: https://script.google.com/a/macros/hdsb.ca/s/AKfycbwSoiiutFyMT4Guo9M-It895ZqHzu5U-tP9BtnwfYx8/dev?phonenumber=whateverphonenumber. When I try to access it on Android through Volley, it breaks down, giving me some random HTML code, when I just want the result(plain text). Here is my method: private void checkSheet(){ TelephonyManager tMgr = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); final String

Run Google Apps Script in Android

◇◆丶佛笑我妖孽 提交于 2020-02-07 11:20:07
问题 I am trying to run an Apps Script script in Android. Here is my script: https://script.google.com/a/macros/hdsb.ca/s/AKfycbwSoiiutFyMT4Guo9M-It895ZqHzu5U-tP9BtnwfYx8/dev?phonenumber=whateverphonenumber. When I try to access it on Android through Volley, it breaks down, giving me some random HTML code, when I just want the result(plain text). Here is my method: private void checkSheet(){ TelephonyManager tMgr = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); final String

Trigger different Google Script functions after different form submissions

时间秒杀一切 提交于 2020-02-07 10:13:11
问题 I currently have five different forms connected to the same Google Sheet. My end goal is that after someone submits a response to any of the forms, they will receive an email with their responses. I know that Google Forms has that ability through response receipts, but it's not optional. If I have that feature on, they cannot submit the form without filling in their email (even if they don't want the receipt). The code I have at the moment is: function ActivityFunction() { var spreadsheet =

Google AdminDirectory api in not updating addresses

放肆的年华 提交于 2020-02-07 05:29:06
问题 I am trying to update user's reach profile attributes with below apps script. It is updating all fields except only addresses. Kindly suggest if I am missing anything. Below is the part of code: var resource = { organizations: [{title: designation, department: department, }], addresses: [ { locality: "Pune", streetAddress:"Kothrud", postalCode:"411038", primary:true, region:"Maharashtra", type: "work", } ], phones: [{ type: "work", value: phone, }, { type: "mobile", value: mobile, }, {

Converting from application/vnd.google-apps.spreadsheet to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet is not supported

笑着哭i 提交于 2020-02-07 05:16:47
问题 i wrote here few hours ago about this code and here i am again, it's almost ready but i don't know why it's giving me back this error: Converting from application/vnd.google-apps.spreadsheet to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet is not supported. So, when MimeType is pdf it works fine, email is sent and i've got the file attached, but our supplier have to get .xlsx file... So i've tried excel_legacy, GOOGLE_SHEETS ( when using this it asks me for blob which is

Moving filtered values (copy and paste values) using google sheet script while ignoring the column heading / title

谁都会走 提交于 2020-02-07 02:01:30
问题 I would like to copy and paste VALUES only from source sheet to target sheet using google scripts. I have filter applied in the column so I am only looking to copy the cells that are present / filtered (not all values). In the example that I have built, I have: Source sheet (copy values from): Sheet1 Target sheet (paste values to): Sheet2 Sheet1 screenshot: Process / Steps: When I select any particular color in "Fav_color" in column A..let's say "yellow". Now, Members are filtered accordingly

Cannot find Google SendEmail function

北城余情 提交于 2020-02-07 02:01:08
问题 I use the following code to send reminder emails to all the emails that are in a certain cell in column 7. But, it gives an error that "Cannot find SendEmail function". Would anyone please help me? function myfunction() { var sheet = SpreadsheetApp.getActiveSheet(); // figure out what the last row is var lastRow1 = sheet.getLastRow(); // the rows are indexed starting at 1, and the first row // is the headers, so start with row 5 var startRow1 = 5; // grab column 6 (the 'days left' column) var

How to reset/reload/restart a Google Form

倾然丶 夕夏残阳落幕 提交于 2020-02-06 18:49:25
问题 I would like to display a feedback google form in kiosk mode on a tablet. After form completion, it should show a "thank you" message and restart the form for the next visitor. I noticed a "Show link to submit another response" in the form settings menu, but no way to accomplish a auto refresh. Fortunately there is the google's script manager. As the script runs in a sandboxed iframe, I cant even access the window object. I know that I can access the FormApp.getActiveForm() method, but there

How to reset/reload/restart a Google Form

送分小仙女□ 提交于 2020-02-06 18:48:53
问题 I would like to display a feedback google form in kiosk mode on a tablet. After form completion, it should show a "thank you" message and restart the form for the next visitor. I noticed a "Show link to submit another response" in the form settings menu, but no way to accomplish a auto refresh. Fortunately there is the google's script manager. As the script runs in a sandboxed iframe, I cant even access the window object. I know that I can access the FormApp.getActiveForm() method, but there

Auto Refresh on Google Data Studio using Google Apps Script

泄露秘密 提交于 2020-02-06 12:32:53
问题 I have connected a Data Studio report to our internal SQL data source and I've been searching for a way to auto refresh the report at certain intervals. The only thing I found so far is the plugin called Data Studio Auto Refresh , which is not working. Is there anyway to set up auto refresh on my Data Studio report using Google Apps Script? The datastudio report is being projected to a large monitor in our office that's why I am trying any ways to auto refresh the report. 回答1: So since the