
Explore Google Apps Script to connect Google Workspace services, generate docs from spreadsheet data, convert to PDFs, and email them, while building web app endpoints with get and post.
Create a Google Apps Script document using the DocumentApp create method, retrieve the document ID, and explore the script editor, permissions, and the execution log for debugging.
Create and update Google Docs with DocumentApp in Apps Script by generating docs, accessing the body, appending paragraphs, and styling them with a style object for colors and bold.
Copy a document by its id, create a new copy on drive, and update the copy's content using replace text against a template, generating personalized documents.
Connect a Google Apps Script to a spreadsheet, fetch data as an array, loop through rows, and update boolean values in a named sheet.
Select sheet data (first name, last name, id), populate a template doc, create new docs in a folder, and update the spreadsheet with each doc's URL.
Convert Google Docs to PDFs by looping through a docs folder and saving pdf copies in a dedicated pdf folder using Google Apps Script, Drive service, and Blob objects.
This project uses a Google Doc template populated from spreadsheet data to generate PDFs and email them to addresses listed in the sheet.
Build a web form with JavaScript and Ajax, submit data to Google Apps Script as the backend, and log submissions to a spreadsheet while sending confirmation emails.
Create a web form with name, email, and message fields, validate inputs with JavaScript, display error messages, and submit via Ajax fetch to a Google Apps Script endpoint.
Learn to send form data from a web page to Google Apps Script via Ajax post, store it in a spreadsheet, and return JSON responses.
Wrap up the web form by posting inputs to a Google Apps Script, saving name, email, and message to a spreadsheet, and emailing the user and our own email address.
Explore core Google Apps Script basics to create and organize spreadsheets and folders, fetch web and drive images, convert them to blobs, and insert images into sheets and docs.
Learn to write data to Google Sheets with Apps Script by selecting the active or a named sheet, calculating the last row, and setting a dynamic range with the data.
Use an onEdit trigger to auto-fill the date in column B when column A updates, and log the edit details (range, user, new value) to a log sheet.
Add a custom menu in Google Sheets with Apps Script, open an HTML dialog from a bound script, and customize the dialog using an index file.
Explore creating a custom Google Apps Script function that computes a Fibonacci sequence in Sheets, applying it to data in cells and returning successive values.
Use a bound Google Apps Script with an onEdit trigger to monitor the A1 cell across sheets and email the edited cell, sheet name, and new value.
Create a custom UI menu with Google Apps Script to insert the current date into the active cell. Use on open, add item, and adder to set the date.
Create Google Apps Script menus in Sheets to set the background color of selected cells and insert dates, then use on open and on edit triggers for alerts and emails.
Create a custom Google Sheets menu to clear selected cells using Apps Script. Build the UI on open and run delete cells to blank the active range.
Create a custom Google Apps Script UI menu to apply a selected background color to the active range in the active sheet, via the on open setup and color function.
Google Apps Script Projects for Beginners Create PDF WebForm - powerup your Google Workspace do more connect with data and bring it into your Google Projects.
Google Apps Script is just like JavaScript - running in the cloud.
Sign into your Google Account, create scripts in Google Apps Script code
This course covers some amazing projects that you can create. Source Code is Included.
Full Lifetime access - Taught by a Google Developer Expert with over 20 years of development experience, ready to help you learn more about Google Apps Script and answer any questions you might have.
The projects of this course will demonstrate how to apply Google Apps Script code to create Docs, create a web app with both GET and POST endpoints, make use of Sheet data, get sheet data, send emails and much more.
Explore Google Apps Script - connect the power of Google Services together! (11 page PDF Guide Included)
This section covers how to get started with Google Apps Script and how to create common functionality with just a few lines of code. Create files, select existing files and update them. Use them within your code. How to send out emails and add attachments. Use of blobs to create PDF files, copy and use Docs content in brand new dynamically created Docs. Explore how to get Google Spreadsheet sheet data, and then use the data from the sheet to populate a Google Doc Template, creating new Docs with the populated content dynamically. Take those new files and convert them into PDFs, create PDF files dynamically from Doc files and email them to addresses coming from a Spreadsheet. The upcoming lessons will help you learn more about how to connect the workspace services together to create a fully functional application that can use Sheet data, create files and email files as PDFs.
Create Documents - Select and Update Existing Google Docs
Apply Styling to Documents
Copy a Google Doc to new Locations
Get Data from your Spreadsheet and populate a Google Doc with Sheet data
Create a Doc as a template
Convert the Doc to a PDF version
Using Sheet data and a Doc Template create PDFs and send them to email addresses
Send emails and dynamically generated attachments
Create Doc as PDF and email to Sheet data email address
Final Coding Project Exercise :
Create a Spreadsheet with headings that you want to use replacing the values in a Google Doc.
Create a Google Doc to use as a template for the PDF. Within the Doc for the dynamic values that will be populated from the spreadsheet add the keys using the curly brackets around the heading words from the Sheet heading row contents. {first} Add additional template text, images and setup to prepare to send out.
In Drive create a folder that you can use to save temporary files into.
Create a new Apps Script standalone application. Give it a name
Get the id of the Spreadsheet. Select the sheet data and get the heading row contents as an array.
Get the folder for the temporary files, Get the Doc file within DriveApp as a file object.
Loop through all the rows of content from the Spreadsheet data. Create a file making a copy of the template Doc.
Get the document object using DocumentApp of the file that was just created.
Open the doc and get the body.
Loop through the Sheet heading names, do a replaceText() of the heading name in the curly brackets to the row using the index value.
Set the name of the newly created doc to be the first and last name of the column data from the sheet.
Get the document as a blob.
Create the email subject and body contents.
Using MailApp send an email with the blob as a PDF attachment.
How to Create a Web Form that can send emails using your Gmail account (27 page PDF guide included)
Did you know that you can create WebApps with Google Apps Script? These can be used as API endpoints that you can send and retrieve data from using frontend code. Get and Post methods are both default functions that can get request parameters and body contents to use in Google Apps Script Code. Once the WebApp receives the data it can then use it within the Google Workspace services, like sending emails, saving and updating spreadsheet contents. This section will cover one of the most commonly asked for functions for web developers, when creating a form where to send the data from if you don’t have a backend server setup. Typically you need backend code to send emails, save into the database and more. Let Google Apps Script handle these as your web server. Apps Script is just like JavaScript but in the cloud and can easily access so many powerful Google Workspace services.
HTML Send Email via Apps Script
How to create a WebApp
Use of GET within the WebApp
Execute a block of code on request from AJAX
Send POST request to Google Apps Script
Send Email when the form is submitted
Exercise : Update the fetch method to POST, include the form field data as an object in the POST request body contents. Create the Google Apps Script endpoint using a webapp to receive the GET and POST request data from the AJAX request from JavaScript.
Create a web app with Google Apps Script GET method.
Create a new project
Using the method doGet(e) create a new function that will return the e parameters from the URL request object.
Create and return the e parameters as a string value.
Set the MimeType to JSON
Deploy a new webapp set the configuration to execute as your account, and who has access to Anyone
Copy the web app URL to the JavaScript application as the GET fetch endpoint url.
Try sending the fetch request to the Google Apps Script web app and check the response data in the console.
Source Code is included so that you can try the code for yourself and create your own version of the applications.