google apps script - Suppressing Email Notifications when setSharing in GAS -
Then, I have the following code snippet, it is part of a large script that copies a folder to the template and Customize them for the individual user's location and data The problem with this script is that whenever I add an owner or editor to each folder and sheet, I send an email notification for each, even if the script Was authorized to run to an individual script. As a result, about 11 notification emails are being sent to the user's email. I do not like spam
Is there a way to suppress email notification for each shared item and change permission, and file and folders have been copied and configured just by sending a summary email? I intend to include a link to the top level folder (destConfiguration) in the email. My original summary intent is shown below the snippet in the comment section.
Trust me, I have searched this one as well as I can think of, but I start getting crossover in Gmail scripts. P>
var destConfiguration = sourceConfiguration.makeCopy (targetFolder) .setName (ClinicID + "Calllog Management Configuration"). Set Owner (User ID) RemoveEditor (Editor); / * Erosion * / / display a confirmation message / * var mailTo = userId; Var MailSwitch = ClinicID + "Cesslog Management Tool"; Var mailc सी = ccmail; Var mailBody = "Your settings and folders for your clinic's cassand management tool are configured and copied to your Google Drive."); MailApp.sendEmail (mailTo, mailSubject, mailBody, {name: "Mgmt Tools Bot"}); * /
It is not possible to send an email to the owner of all sharing modification files today Will give
Comments
Post a Comment