This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A number of Global Variables to speed up repetitive automation. | |
| */ | |
| var theSpreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| var timeZone = theSpreadsheet.getSpreadsheetTimeZone(); | |
| var logSheet = theSpreadsheet.getSheetByName("Log"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getFormData(e) { | |
| // get Spreadsheet TimeZone | |
| var timeZone = SpreadsheetApp.getActiveSpreadsheet().getSpreadsheetTimeZone(); | |
| // get Form data | |
| var formValues = e.namedValues; | |
| // get specific values from Form ****************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Code to learn about Exponential Backoff. | |
| * Developed when experiencing 'Rate Limit' issue with updating a Calendar Event of Attendees. | |
| * | |
| * DEVELOPED BY THE GIFT OF SCRIPT: https://www.pbainbridge.co.uk/ | |
| */ | |
| function mainFunction() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A number of global variables that are re-used throughout this script. | |
| */ | |
| // 5 minute maximum runtime | |
| var maxRuntime = 5 * 60 * 1000; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A number of global variables that are re-used throughout this script. | |
| */ | |
| // 5 minute maximum runtime | |
| var maxRuntime = 5 * 60 * 1000; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A number of global variables that are re-used throughout this script. | |
| */ | |
| // 5 minute maximum runtime | |
| var maxRuntime = 5 * 60 * 1000; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Developed by The Gift of Script: https://www.pbainbridge.co.uk/ | |
| */ | |
| function checkEmailAddresses() { | |
| // create regular expression for testing valid email address | |
| var emailAddressRegEx = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/gm; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Function to change ownership of a Google Drive item (within your organisation) without sending an email | |
| * notification. | |
| * | |
| * | |
| * DEVELOPED BY THE GIFT OF SCRIPT: https://www.pbainbridge.co.uk/ | |
| */ | |
| function changeOwnership() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Developed by The Gift of Script: https://www.pbainbridge.co.uk/ | |
| */ | |
| function onOpen() { | |
| SpreadsheetApp.getUi() | |
| .createMenu('Admin') | |
| .addItem('Fix Dates', 'fixDates') // label for menu item, name of function to run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Function to create menu items for Trigger | |
| */ | |
| function onOpen() { | |
| SpreadsheetApp.getUi() | |
| .createMenu('Admin') | |
| .addItem('Create Trigger', 'createTrigger') // label for menu item, name of function to run. |