Software Development

Workflows Template: Create a Report with Google Sheets

Workflows templates are out-of-the-box flows and automations that you can add and start using right away. Each template provides a specific and real world solution.

In this blog post you will learn about the Creates a Report with Google Sheets template.

Why it’s important

Many organizations have custom, org-specific needs to report on particular lifecycle events and share that data with others in the organization. Okta’s System Log is powerful but limited to Okta admins, and also does not allow for scheduled reports. This workflow demonstrates building a custom report in Google Sheets using a user suspended event (any other event can be used). And then sharing that report with stakeholders when the event occurs.

Template overview

The flow from this template will run any time a user is suspended (Okta – User Suspended card). The flow then gathers information about the user suspended and creates a new row in Google Sheets with that information. An email is then created with information about the user and link to Google Sheets and sent to stakeholders.

The template has:

  • 1 flow:
    • Suspended Users Google Sheets Report

Template flow steps

Let’s see how Suspended Users Google Sheets Report flow works.

Note: I removed a number of Notes cards from the flow so all all cards can fit into a screenshot.

Suspended Users Google Sheets Report flow

Flowchart view of the flow:

Flow chat view of Suspended Users Google Sheets Report flow

The flow has the following steps:

  • When a user is suspended, the Okta – User Suspended event is fired
  • From the event the flow gets information about the user and creates a new Google Sheets row (Google Sheets – Create Row)
  • Text – Compose creates a subject for email
  • Google Sheets – Read Worksheet Info card outputs the spreadsheet URL (to be included in the email)
  • The next Text – Compose card creates the email message
  • The Gmail – Send Email sends card the email

Template setup

How to add and setup the template:

  1. In Workflows console click Templates
  2. In the search field start typing create and then select Creates a Report with Google Sheets template
  3. Click Add template button
  4. In Suspended Users Google Sheets Report flow set a connection for
    1. Okta – User Suspended card
    2. Google Sheets – Create Row card
    3. Google Sheets – Read Worksheet Info card
    4. Gmail – Send Email card

In Google Sheets spreadsheet the column names need to match the names in the flow:

Google Sheets spreadsheet with suspended users

🎁 Looking for more out-of-the-box automation solutions? Check out all the available templates.

Published on Java Code Geeks with permission by Max Katz , partner at our JCG program. See the original article here: Workflows Template: Create a Report with Google Sheets

Opinions expressed by Java Code Geeks contributors are their own.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button