AppsScriptPulse

Making Google Forms and Spreadsheets a Bit Less Rigid Block Style – CogDogBlog

Here is how I learned to do some scripts to (a) use the WordPress API to dynamically populate some cells in a Google Spreadsheet; and (b) how to script a way to use these results to dynamically update text and menus in Google Forms.

A very comprehensive writeup of integrating Google Forms/Sheets and WordPress with Google Apps Script.

Source: Making Google Forms and Spreadsheets a Bit Less Rigid Block Style – CogDogBlog

Using React + Google Sheets as your CMS

I’ll start this tutorial by admitting you shouldn’t actually use Google Sheets as your CMS for a production level site or project. However…

By the end of this tutorial, you will be able to serve up any data from a Google Sheet into a real React app.

Source: Using React + Google Sheets as your CMS

Google Apps Script —Track videos viewed on Google Drive within your organization

SCENERIO: You are admin of a G-Suite set up. You upload training videos for your organization members on Google Drive/Team Drive. To increase productivity, you want to ensure all members watch the videos you upload.

SOLUTION: You utilize this amazing GSuite Reports API and use Google Sheets as your dashboard to view all details about your MP4 videos.

Source: Google Apps Script —Track videos viewed on Google Drive within your organization

4 Google Scripts That Make Google Sheets More Powerful

Image: makeuseof.com

Google Sheets is great out of the box, but can be even more powerful if you use Google Sheets scripts to enhance its capabilities.

Always nice to see Google Apps Script getting some publicity in the general tech news. In this post on makeuseof.com some basic Google Apps Script functionality is highlighted in particular highlighting how “productivity is the secret to productivity success”

Source: 4 Google Scripts That Make Google Sheets More Powerful

Check if a date is more than a month ago

Recently during a consultation I was asked if it would be possible to check if the date submitted on a Google form was over a month ago, to which I responded “sure …”.

Admittedly this was a lot more difficulty than I thought it would (and should) be – I was bamboozled by online forums and posts suggesting to convert dates into numbers and perform other incoherent functions to achieve this. Eventually however I came across the single JavaScript function that I would need to achieve this feat …… ‘getMonth’.

Source: The Gift of Script: Check if a date is more than a month ago

Protect a named range in a Google sheet

The following Google Apps Script code is from some recent learning I have been doing when asked about locking-down certain areas of a sheet. I knew of named ranges and protecting cells but not quite that it could be done with apps script.

Source: The Gift of Script: Protect a named range in a Google sheet

SpreadAPI: add REST API to any spreadsheet in Google Sheets

SpreadAPI

Image: spreadapi.com

SpreadAPI is a free Google Apps Script that allows you to add REST API to any spreadsheet in Google Sheets in a few minutes. The API can be accessed over HTTPS from back-end as well as front-end apps.

It’s currently possible to publish a Google Sheet as JSON to get the data in a third-party application, but it’s harder to allow for posting new data back to that sheet. SpreadAPI is a script that creates a full-function REST API for a Google Sheet. Each implementation is set up individually and provides multiple authentication methods for specific users or even anonymous users.

Source: spreadapi.com

How to Inject Data from Google Sheets Into a Google Slides Presentation | UpBuild

Stop copying and pasting data from Google Sheets. Have it automatically injected into a Google Slides presentation with this Apps Script.

Nice introduction post which covers the basics of Google Apps Script development using a project to populate Google Slides from Sheets as an example

Source: How to Inject Data from Google Sheets Into a Google Slides Presentation | UpBuild

Send content automatically via a Google Sheet and an Apps Script | Sheets to Apps

In this episode of Sheets to Apps, see why it can be handy to use a Google Form to help requestors receive assets like e-books or online white papers automatically by email using Apps Script.

Get weekday name from a date

Take a date and extract the day of the week from it. By making use of ‘formatDate’ and the pattern ‘EEEE’ within a few lines of code we have a workable week-day name that could be used in an if statement as discussed in the previous post.

Source: The Gift of Script: Get weekday name from a date – alternative