google-apps-script

FILE_UPLOAD item type in google forms

ⅰ亾dé卋堺 提交于 2020-02-24 05:28:36
问题 Google recently added a file upload feature to their forms. However, I am unable to find any documentation on how to use this in google scripts. If I look at the item types API on google, it isn't listed https://developers.google.com/apps-script/reference/forms/item-type However, if I check the types in my form, I get a type of "FILE_UPLOAD" responseItem.getItem().getType() //returns FILE_UPLOAD If I look at the object, it is an array with a string. I am just trying to figure out how to get

FILE_UPLOAD item type in google forms

喜你入骨 提交于 2020-02-24 05:27:21
问题 Google recently added a file upload feature to their forms. However, I am unable to find any documentation on how to use this in google scripts. If I look at the item types API on google, it isn't listed https://developers.google.com/apps-script/reference/forms/item-type However, if I check the types in my form, I get a type of "FILE_UPLOAD" responseItem.getItem().getType() //returns FILE_UPLOAD If I look at the object, it is an array with a string. I am just trying to figure out how to get

Find and replace values from column

夙愿已清 提交于 2020-02-23 07:48:19
问题 I have a document consisting of five different worksheets. These sheets contain tables of five columns and in excess of 400 rows each. I am trying to replace specific text strings found in these tables with other text strings. To this end, I've created another sheet with another table ($replacement-table), containing the strings I want to replace in one column and the strings I want to replace them with in another column. The number of strings to be replaced in excess of 500, and I'm not

How to use a custom function in an ARRAYFORMULA for a range of cells?

陌路散爱 提交于 2020-02-23 07:01:46
问题 I have a Google Form that is populating a Google Sheet. Due to having custom formulas in the sheet to manipulate the data populated from the form I am using ARRAYFORMULA to apply to all rows in a column. I have a custom function to encode rows containing html function base64EncodeWebSafe(input) { try { // Try and fetch the specified url. return Utilities.base64EncodeWebSafe(input); } catch (e) { Utilities.sleep(1000); return Utilities.base64EncodeWebSafe(input); } } When I call this function

Drop-down validation list created dynamically

一世执手 提交于 2020-02-22 07:55:46
问题 In range A1 I have a drop-down validation list. Based on the user's selection from that list I would like to dynamically create a new drop-down validation list in range C1. For instance, in A1 the list contains: A B C So if the user selects A from the list, the new list in C1 contains: 1) Annoying Orange 2) Angry Birds 3) Arbitrary Sample If the user selects B, the new list contains: 1) Bloated Code 2) Better Left Unsaid 3) Bad Attempt etc Easy enough to do using VBA. But in GAS.... I have

Image from Google Drive to Google Slides via DriveApp.getFileById

倾然丶 夕夏残阳落幕 提交于 2020-02-21 13:42:05
问题 I want to import an image to Google Slides over Google Apps Script after the instruction Google Developers - How to... function createImage(presentationId) { // Add a new image to the presentation page. The image is assumed to exist in // the user's Drive, and have 'imageFileId' as its file ID. var requests = []; var pageId = 'g1fe0c....'; var imageId = 'MyImage_01'; var imageUrl = DriveApp.getFileById('0B6cQESmLJfX...').getUrl(); var emu4M = { magnitude: 4000000, unit: 'EMU' }; requests.push

How to change Google Apps Script locale?

耗尽温柔 提交于 2020-02-21 12:32:20
问题 I created a Google Apps Script on the Google account, which had the Polish language set in the settings. Executing the script was causing some Google error message about exceeding quote Gmail rateMax, which was displayed in Polish. I shared this script with another account, where language was set to English in account settings. To my surprise, executing the script on the account where language was set to English, caused the error message to still appear in Polish. Question: how can I change

How to change Google Apps Script locale?

戏子无情 提交于 2020-02-21 12:32:08
问题 I created a Google Apps Script on the Google account, which had the Polish language set in the settings. Executing the script was causing some Google error message about exceeding quote Gmail rateMax, which was displayed in Polish. I shared this script with another account, where language was set to English in account settings. To my surprise, executing the script on the account where language was set to English, caused the error message to still appear in Polish. Question: how can I change

How to stop receiving email failures for Google Apps Script: Email Scheduler for Gmail?

杀马特。学长 韩版系。学妹 提交于 2020-02-21 06:52:53
问题 I am not tech savy here but I would appreciate a simple straight english language to tell me what I can do to stop receiving those emails that I get everyday. Can anyone point me to the right direction with or without tutorial? Many thanks 回答1: I have been having this issue for ages and I think I just found out how to stop it. Basically the removal of the "Email Scheduler for GMail" script does not remove the trigger when the uninstall happens so we have to do it manually. Go to script.google

How to stop receiving email failures for Google Apps Script: Email Scheduler for Gmail?

杀马特。学长 韩版系。学妹 提交于 2020-02-21 06:51:48
问题 I am not tech savy here but I would appreciate a simple straight english language to tell me what I can do to stop receiving those emails that I get everyday. Can anyone point me to the right direction with or without tutorial? Many thanks 回答1: I have been having this issue for ages and I think I just found out how to stop it. Basically the removal of the "Email Scheduler for GMail" script does not remove the trigger when the uninstall happens so we have to do it manually. Go to script.google