久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 Google Apps 腳本在不通知用戶的情況下共享云

Share a Drive document without notifying user with Google Apps Script(使用 Google Apps 腳本在不通知用戶的情況下共享云端硬盤文檔)
本文介紹了使用 Google Apps 腳本在不通知用戶的情況下共享云端硬盤文檔的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在 Apps Script 中創建一個工作流程,其中從模板生成文檔并與各種用戶共享以供批準.該腳本會發送一封定制的電子郵件,通知用戶該文檔需要他們的批準,但他們還會在流程的每個階段收到第二封電子郵件,該電子郵件來自存儲該文檔的驅動器的用戶,其中說用戶已與您共享文檔".有沒有辦法禁用這些警報?當您從云端硬盤手動共享文檔時,有一個復選框選項可讓您選擇用戶是否收到通知.但是,我找不到使用 Apps 腳本禁用此通知的方法.

I am creating a workflow process in Apps Script where a Doc is generated from a template and shared with various users for approval. The Script sends a customised email notifying a user that the document requires their approval but they also receive a second email at each stage in the process from the user whose Drive the document is stored in saying "User has shared a document with you". Is there any way of disabling these alerts? When you share a document manually from your Drive, there is a checkbox option that allows you to choose whether or not the user receives a notification. However, I cannot find a way to disable this notification with Apps Script.

我正在使用 doc.addEditors(users) 來共享文檔.

I am using doc.addEditors(users) to share the document.

非常感謝

推薦答案

如果您使用 Google DocsGoogle SpreadSheets,有一個簡單的解決方案.您可以使用 DocumentAppSpreadSheetApp 共享您的文檔或電子表格,而無需電子郵件通知:

There is a simple solution if you are working with Google Docs or Google SpreadSheets. You can use DocumentApp or SpreadSheetApp to share your Docs or SpreadSheets without email notification:

DocumentApp

var doc = DocumentApp.openById('124144')
doc.addEditor('example@mail.com').addViewer('example2@mail.com')

電子表格應用程序

var spreadSheet = SpreadsheetApp.openById('124144')
spreadSheet.addEditor('example@mail.com').addViewer('example2@mail.com')

但是,如果您使用的文檔不是 Docs 或 SpreadSheets,則必須使用 DriveApp 進行共享,并且將發送電子郵件通知.

However, if you are working with documents that aren't Docs or SpreadSheets, you must share then using DriveApp and email notification will be send.

這篇關于使用 Google Apps 腳本在不通知用戶的情況下共享云端硬盤文檔的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 頻道中的消息?)
how to make my bot mention the person who gave that bot command(如何讓我的機器人提及發出該機器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復必須使用導入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務器時的歡迎消息)
主站蜘蛛池模板: 久久91精品国产一区二区三区 | av一级久久 | 国产亚洲精品久久情网 | 中国91av | 久久久女女女女999久久 | 一级一级一级毛片 | 欧美xxxx网站 | 中国一级特黄真人毛片 | 性色视频在线观看 | 欧美在线亚洲 | 给我免费的视频在线观看 | 丁香色婷婷 | 在线视频 欧美日韩 | 在线免费小视频 | 婷婷国产一区 | aaa大片免费观看 | 91av视频 | 一区在线免费视频 | 欧美精品一区二区免费视频 | 日韩一级电影免费观看 | 五月天综合影院 | 久久区二区 | 欧美一级视频免费看 | 亚洲第一区久久 | 亚洲视频在线免费观看 | 日韩视频中文字幕 | 好姑娘影视在线观看高清 | 国产精品久久777777 | 国内精品久久久久久久影视简单 | 久久国产精品久久久久久 | 看片wwwwwwwwwww | 91精品久久久久久久久久入口 | 国产大毛片 | 亚洲国产精品视频 | 99久久精品免费看国产高清 | 成人av一区 | 久久久久国产一区二区三区 | 天天操天天操 | 国产一区二区在线视频 | 国产人成精品一区二区三 | 亚洲精品大片 |