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

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

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

問題描述

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

電子表格應(yīng)用程序

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

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

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.

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

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

相關(guān)文檔推薦

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(如何讓我的機(jī)器人提及發(fā)出該機(jī)器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復(fù)必須使用導(dǎo)入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務(wù)器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復(fù)“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務(wù)器時的歡迎消息)
主站蜘蛛池模板: 国产激情片在线观看 | 久久精品国产免费高清 | 亚洲不卡在线视频 | 人人叉 | 国产精品国产馆在线真实露脸 | 亚洲精品一区中文字幕乱码 | 久久久91精品国产一区二区三区 | 日韩在线免费看 | 亚洲视频一区在线观看 | 国产精品一区二区欧美黑人喷潮水 | 国产黄色一级电影 | 青青艹在线视频 | 国产乱人伦 | 欧洲亚洲一区二区三区 | 欧美一区二区三区在线视频 | 一区二区三区视频在线观看 | 亚洲国产精品美女 | 日日射影院 | 午夜视频在线观看网址 | 九九99精品 | 自拍偷拍中文字幕 | 午夜影院网站 | 亚洲天堂中文字幕 | 九九九久久国产免费 | 一区二区三区在线 | 黄色一级免费 | 欧美一级艳情片免费观看 | 欧美日韩免费视频 | 2020亚洲天堂 | 日本精品一区二区 | 天天草天天操 | 欧洲一区二区三区 | 综合精品久久久 | 97视频免费 | 国产综合欧美 | 欧美一级在线 | av免费网址 | 日韩中文字幕在线观看视频 | 国产精品国产成人国产三级 | 91在线| 日韩欧美一区二区三区免费观看 |