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

Get The Last Response from a Google Form

Most of the time, when I write Google Scripts that address a Google Form, I almost always access the data through the spreadsheet of responses. But sometimes, getting back to the Form itself is necessary. In those cases, I use this code to access the final response. It’s not quite as simple as it seems.

The script below accesses the last response to a form, gets the email, timestamp, and answers and then adds them to a Google Sheet.

Source: Get The Last Response from a Google Form

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

Create a game web-app fast with Google App Maker ? Challenge accepted.

Google App Maker allow you to create responsive web-app fast in your company. What about create an internal challenge ?

In this post Jérémy Dessalines highlights the benefits of using Google App Maker to rapidly develop a web based game and all in a couple of lines of code:

The app benefits from Google App Maker to authenticate the user, create a responsive application that allows the visualization of good practices in the form of cards. … Access is secure and restricted to a small group of users via a Google Group.

Source: Create a game web-app fast with Google App Maker ? Challenge accepted.

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

Gmail scopes automatically invalidated when a user changes the password requiring re-authentication 

I stumbled upon this particular oddity a few weeks ago when a client asked me to resolve an issue.
It turns out that if your application leverages gmail scopes, those scopes are automatically invalidated when a user changes the password on that gmail account. The client in question had changed their password which triggered an authorization prompt. Something to watch out for.
Nice highlight from Dimu Designs, the source thread is open for other ‘gotchas’.

Source: The more you know! – Google Groups

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

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