google-apps-for-education

OpenById Error when generate Google Doc from Google Form Submission

半世苍凉 提交于 2020-01-24 01:08:49
问题 I am currently working in a Google Education domain and I would like to automatically generate a Google Doc via an onSubmit trigger from a Google Form. I have a template file that I would like to copy and then replace fields (e.g., {{name}}) with responses from the form. Upon submission, the template Google doc is successfully copied and renamed, but I cannot open the doc to replace the text fields. var templateFile = DriveApp.getFileById(id); var targetFolder = DriveApp.getFolderById(id);

Change acl of pdf and non-google documents (EDU domain)

依然范特西╮ 提交于 2019-12-25 06:01:18
问题 I'm receiving this error when trying to change file ownership from Google Apps Script (Google Apps for Education): GData ServiceException You can't yet change the owner of this item. (We're working on it.) The same code works on a Google Apps for Business domain. Is there a limitation for EDU domains? 回答1: Ok, found the answer in the Google Drive support pages: Only Google Apps customers in Premier and Government domains can transfer ownership of a synced or uploaded file (such as a PDF or

How to remove Warning “This application was created by another user, not by Google” in Google Apps for Education

时光总嘲笑我的痴心妄想 提交于 2019-12-07 08:54:56
问题 We set up a Google Apps Script -based Intranet in our organization, which benefits from Google Apps for Education. We've been using for months: doGet() HtmlService.createTemplate(...) Publish > Deploy as Web App and setting: "Execute the app as:" admin@ourdomain.com "Who has access to the app:" Any member of ourdomain.com Everything worked ok up to now. However today (July 7th. 2017) the HTML pages to be shown to the intranet users include an inconvenient Warning added by Google at the top

Sharing a Google Drive file without sending notification email

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 06:01:15
问题 I am using Google Drive Java API. I need to copy a file from one Google domain to another, so my approach is the following: authenticate with source domain service account share file with user in destination domain authenticate with destination domain service account and impersonate the user copy the original file from origin domain to destination domain delete the share permission from the original file Everything works as expected except that I don't want the destination owner to receive

Google APPs managed “unlimited” account storage quota for service account

孤人 提交于 2019-12-06 12:34:28
问题 I have a Google account as a student. This account is managed by my university and recently the university informed us that students' accounts have now "unlimited" storage for Drive etc. To perform backups with this, I created a few service accounts in Google APIs console (XXX@developer.gserviceaccount.com). But it turns out that those accounts' storage is limited to 15GB, that is, when trying to upload files to one of service accounts that already has ~15GB in it, I get an error "the client

How to remove Warning “This application was created by another user, not by Google” in Google Apps for Education

删除回忆录丶 提交于 2019-12-05 17:35:57
We set up a Google Apps Script -based Intranet in our organization, which benefits from Google Apps for Education. We've been using for months: doGet() HtmlService.createTemplate(...) Publish > Deploy as Web App and setting: "Execute the app as:" admin@ourdomain.com "Who has access to the app:" Any member of ourdomain.com Everything worked ok up to now. However today (July 7th. 2017) the HTML pages to be shown to the intranet users include an inconvenient Warning added by Google at the top claiming that This application was created by another user, not by Google. , which is really annoying. I

Sharing a Google Drive file without sending notification email

戏子无情 提交于 2019-12-05 11:45:30
I am using Google Drive Java API. I need to copy a file from one Google domain to another, so my approach is the following: authenticate with source domain service account share file with user in destination domain authenticate with destination domain service account and impersonate the user copy the original file from origin domain to destination domain delete the share permission from the original file Everything works as expected except that I don't want the destination owner to receive the Google Drive email notifying him about the shared file. When the file is shared via the Web GUI one

Google APPs managed “unlimited” account storage quota for service account

我与影子孤独终老i 提交于 2019-12-04 18:25:01
I have a Google account as a student. This account is managed by my university and recently the university informed us that students' accounts have now "unlimited" storage for Drive etc. To perform backups with this, I created a few service accounts in Google APIs console (XXX@developer.gserviceaccount.com). But it turns out that those accounts' storage is limited to 15GB, that is, when trying to upload files to one of service accounts that already has ~15GB in it, I get an error "the client is exceeded his storage quota". I asked the university admins, they don't know how to help and even don

OpenById Error when generate Google Doc from Google Form Submission

孤街浪徒 提交于 2019-12-01 13:52:14
I am currently working in a Google Education domain and I would like to automatically generate a Google Doc via an onSubmit trigger from a Google Form. I have a template file that I would like to copy and then replace fields (e.g., {{name}}) with responses from the form. Upon submission, the template Google doc is successfully copied and renamed, but I cannot open the doc to replace the text fields. var templateFile = DriveApp.getFileById(id); var targetFolder = DriveApp.getFolderById(id); var newDocName = title + "_" + name + "_" + submissionDate; var newFile = templateFile.makeCopy

OpenById Error when generate Google Doc from Google Form Submission

[亡魂溺海] 提交于 2019-12-01 12:45:38
问题 I am currently working in a Google Education domain and I would like to automatically generate a Google Doc via an onSubmit trigger from a Google Form. I have a template file that I would like to copy and then replace fields (e.g., {{name}}) with responses from the form. Upon submission, the template Google doc is successfully copied and renamed, but I cannot open the doc to replace the text fields. var templateFile = DriveApp.getFileById(id); var targetFolder = DriveApp.getFolderById(id);