[英]Automating Google Sheet actions (Make a copy, Google App Script, Triggers) via Drive API
Under the same account, we create client Google Sheets from a template we store within Google Drive. 在同一帐户下,我们使用存储在Google云端硬盘中的模板创建客户端Google表格。
On a regular basis, we make a take a few actions and make changes to the Sheets. 我们会定期采取一些措施并对表格进行更改。 These include:
这些包括:
File-Make a Copy 文件复制
Rename Sheet and move to the "Client" folder 重命名工作表并移动到“客户端”文件夹
Make small edits to a few lines in Google App Script within the Sheet 对工作表中的Google App脚本中的几行进行少量编辑
Setup 3 triggers with permissions to execute on change, edit etc 设置3触发器具有执行更改,编辑等权限的权限
Takes around 3-4 minutes but we do quite a few per day. 大约需要3-4分钟,但我们每天要做很多。
Can these actions be automated via Drive API or perhaps Google Cloud Functions? 是否可以通过Drive API或Google Cloud Functions自动执行这些操作? The project runs alongside AWS Lambda, so that is also an option too as we have used gspread before to work remotely with Sheets.
该项目与AWS Lambda一起运行,因此这也是一个选择,因为我们之前曾使用gspread来与Sheets进行远程协作。 But as far as I am aware making copies, triggers and app script are not available via API or other means.
但据我所知,无法通过API或其他方式来制作副本,触发器和应用程序脚本。
But as far as I am aware making copies, triggers and app script are not available via API or other means.
但据我所知,无法通过API或其他方式来制作副本,触发器和应用程序脚本。
You can do all that and more just using Apps Script. 您只需使用Apps脚本即可完成所有操作。 Read through the guides provided as part of documentation:
通读作为文档一部分提供的指南:
https://developers.google.com/apps-script/overview https://developers.google.com/apps-script/overview
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.