Send Bulk whatsapp

AppSScript Code Copy Code function onOpen() { var ui = SpreadsheetApp.getUi(); // Add a custom menu to the spreadsheet ui.createMenu('Bulk Message') .addItem('Generate Bulk Message', 'createWhatsAppHyperlink') // Add menu item .addToUi(); // Attach menu to the UI } function createWhatsAppHyperlink()...

Read More

Auto Backup Google Sheets

AppSScript Code Copy Code function createBackup() { // Get the active spreadsheet var spreadsheet = SpreadsheetApp.openByUrl('https://docs.google.com/spreadsheets/d/1cdLeAOOVQyYYtjoMViEWr-8RW6yEdhfNjLynCsdpz6E/edit?gid=0#gid=0'); // Name of the backup folder var folderName = "Backup youtube videos"; // Get the root folder of the user's Google Drive var...

Read More

How to Connect ChatGPT with Google Sheets using App Script: A Google Apps Script Tutorial

AppSScript Code Copy Code function onOpen() { var ui = SpreadsheetApp.getUi(); ui.createMenu('Chatgpt AI') .addItem('Generate Answers', 'generateAnswersForQuestions') .addToUi(); createHeader(); } function createHeader() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var headers = ; var headerRange = sheet.getRange('A1:B1'); headerRange.setValues(); // Apply bold...

Read More

V1: Data Parsing From Incoming Emails

AppSScript Code Copy Code function fetchEmailData() { var labelName = "Fetch Gmail data"; // replace with the name of your label var batchSize = 500; // adjust the batch size as needed var sheet = SpreadsheetApp.getActiveSheet(); var data =...

Read More

V5- Autofill Google Doc

AppSScript Code Copy Code function onOpen() { const ui = SpreadsheetApp.getUi(); const menu = ui.createMenu('AutoFill Docs'); menu.addItem('Create New Docs', 'createNewGoogleDocs') menu.addToUi(); } function createNewGoogleDocs() { // Define template and destination folder IDs const googleDocTemplateId = '1G-qP5xoZAdjp3d1LAW9zk5tbum4vBS-GP9B51MTbDW8'; // replace with...

Read More

Detect invalid urls with googleappsscript

AppSScript Code Copy Code function checkURLs() { var sheet = SpreadsheetApp.getActive().getSheetByName("Sheet1"); // Replace "Sheet1" with the name of your sheet var range = sheet.getDataRange(); var values = range.getValues(); for (var row = 0; row < values.length; row++) { var...

Read More

How to Schedule Bulk Emails from Google Sheets using Google Apps Script

AppSScript Code Copy Code function scheduleDripEmails() { var sheet1 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1"); var sheet2 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet2"); var dataRange = sheet1.getDataRange(); var data = dataRange.getValues(); var numRows = data.length; for (var i = 1; i < numRows; i++) { var recipientName...

Read More