
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create the app
/ 50
Push notification received
/ 50
The goal of this lab is to demonstrate how you can use AppSheet automation to send push notifications from an AppSheet app.
In this lab, you learn how to perform the following tasks:
Create an automation task in AppSheet to send a push notification.
Use template variables to customize the body of the notification message.
Create an event, process, and bot to send the push notification.
Verify the receipt of the notification on a mobile device.
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long lab resources will be made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It gives you new, temporary credentials to sign in and access AppSheet for the duration of the lab.
To complete this lab, you need:
Access to a standard internet browser (Chrome browser recommended).
Time to complete the lab.
Make sure you sign in to the lab using an incognito window.
When ready, click .
A new panel will appear with the temporary credentials that you must use for this lab.
If you need to pay for the lab, a pop-up will open for you to select your payment method.
Note your lab credentials. You will use them to sign in to AppSheet for this lab.
Click Open AppSheet to open the AppSheet UI in a separate browser tab or incognito window.
Click to sign in with Google.
In the Sign in with Google dialog, enter the provided Username, and click Next.
Enter the provided Password and click Next.
Click Accept to accept the terms.
To enable AppSheet to access the Google Drive folders associated with your lab account, on the AppSheet consent page, click Allow.
You're now signed in to AppSheet.
To view the AppSheet MyApps page, click X in the top-right corner of the Tell us about you so we can make better recommendations dialog.
The MyApps page might be empty since you do not have any apps yet.
When working on your own app, you normally would incrementally build the app over a continuous project timeline.
Apps that you build are saved and accessible in the Recent section on the Apps page until they are deployed and published.
In this task, you create the app that was built in a previous lab, using a template.
In the lab environment, the app built in a previous lab might still be listed in the Recent section. You cannot use this app to continue working on this lab because the underlying data is not available for use by the app.
The app must first be deleted before you continue with this lab.
If the Employee Onboarding
app is listed, on the 3-dots menu, click Delete.
To confirm the deletion, click Delete.
To continue building the Employee Onboarding
app in this lab, you must first recreate the app from a template.
To copy the Employee Onboarding app to your AppSheet account, click the link: Employee Onboarding
In the app preview, click Accept.
In the left navigation menu, click Copy app ().
In the Copy app form, for App name, type Employee Onboarding, and leave the remaining settings as their defaults.
Click Copy app.
AppSheet creates the app and copies the Google sheet that is used by the app to the /appsheet/data/Employee Onboarding-nnnnnnn
folder under the My Drive folder on Google Drive.
To go to the AppSheet editor, click Customize your app.
You can also access the app from the Apps page in the AppSheet UI under Owned by me.
Your app is set up with the original employee data, and you can now continue to build out the app's functionality.
Click Check my progress to verify the objective.
In this task, you create an automation task in AppSheet to send a push notification whenever an app user modifies the hire date of an employee in the app.
In the AppSheet UI, in the left navigation bar, click Automation () > Tasks.
To create a task, click Create a new Task (+).
In the new task form, specify the following, and leave the remaining settings as their defaults:
Property |
Value (type or select) |
Task category |
Send a notification |
Task name |
Hire date change push notification |
Table name |
Employee |
To send the notification to a list of users, for To, click Add.
For the email address, enter your own email address that you have access to.
To customize the title and body of the notification, disable Use default content.
In the Notification Content section:
a. For Title, type Employee hire date change
b. For Body, type:
When the task is executed, AppSheet automatically substitutes the column variables enclosed in square ([,]) brackets with their stored values. The values are taken from the columns of the current row in the Employee table that is configured for this task.
To save your changes, click Save.
In this task, you create a process with a step that will execute the push notification task that was created earlier. You also create an event and a bot that executes the process.
In the AppSheet UI, in the left navigation bar, click Automation () > Processes.
To create a process, click Create a new Process (+).
For the New Process, click More () and Rename to Notify hire date change.
For Table, select Employee. This process uses the Employee table.
To add a step to the process, click Add a step.
For Step name, type Send hire date change notification, and press ENTER.
For the type of step, select Run a task, and then select the Hire date change push notification task that was created earlier.
Click Save.
With the process and task created, you now configure an event that triggers a bot that will run the process. In this task, you create and configure the event.
In the AppSheet UI, in the left navigation bar, click Automation () > Events.
Click Create a new Event (+).
For the New Event, click More () and Rename to Hire date change.
For Event Type, select Data Change.
Click Updates only.
This event will be triggered when a table row is updated in the app.
For Table, select Employee.
For Condition, click Filter (). In the Expression Assistant:
a. For Condition for event Hire date change (Yes/No), type:
b. Click Save.
Leave the remaining settings as their defaults, and click Save to save your changes to the app.
Finally, you create the automation bot that is triggered by the event. When the event occurs, the bot runs the process that it's configured with.
In the AppSheet UI, in the left navigation bar, click Automation () > Bots, and click Create a new Bot (+).
Click Create a new bot.
For the New Bot, click More () and Rename to Notify change in hire date.
In the bot definition, click Configure event.
Select the Hire date change event that you created in the previous task.
For Run this process, click the arrow to display a list of processes, and select the Notify hire date change process that you created earlier.
Click Save.
In this task, you test the automation by updating the hire date of an employee in the app.
AppSheet will send notifications from automation tasks only to the app creator while the app is in prototype state. For other users to receive notifications, the app must pass a deployment check and be deployed.
To run a deployment check, in the AppSheet UI, navigate to Manage () > Deploy, and then click Deployment Check.
Click Run deployment check.
There should not be any errors displayed for your app. Ignore the warnings, and click Move app to deployed state.
To receive a push notification from AppSheet, the recipient must be an authenticated user who has signed in to at least one AppSheet app with the email address specified in the To property that is configured in the push notification task. The application that the user signed in to need not be the application sending the notification.
In this task, you first share the app with your user email address before installing the app on your mobile device.
To share the app with yourself as the app user, in the title bar of the AppSheet UI, click Share .
For Email address or domain, type the email address that was used in the To property of the push notification task, and press ENTER.
Select the reCAPTCHA checkbox to verify that you are not a robot.
Click Send.
Click Done.
AppSheet uses Notification Device Tokens to convert each email address in the To property of the push notification task into Device Tokens for the user's mobile devices. If the user has more than one device, the notification is sent to each device that the user has signed in from.
In this task, to verify receipt of the push notification, you install the Employee Onboarding app on your mobile device and sign in to the app.
On your device, open the email that you received in the previous task.
Click Install Employee Onboarding in the email.
Click Install.
If you do not already have the AppSheet app installed on your device, you're prompted to install it first.
When you install and run your app on your device, it will appear to run on its own, but it is actually "hosted" by the AppSheet Hosting app.
Click Install to install the AppSheet app from your device's app store.
Return to your email and click Install Employee Onboarding in the email again.
To install the Employee Onboarding app, click Install.
If prompted, add the app to the home screen.
If required, click Accept to accept the user agreement.
The app is now installed on your device.
Sign in to the app with your cloud provider, using your account credentials.
In the app running on your mobile device, in the navigation bar, click Employee.
To update the hire date of Employee 3, click Employee 3, and then click Edit ().
In the employee form, change the hire date of the employee to a future date.
Click Save.
Wait a few seconds for the app to automatically sync the update to the backend, or to sync the data changes manually, click Sync ().
Verify that a push notification was received from AppSheet on your mobile device.
Verify that the title and content of the notification matches that as configured in the push notification task.
Click Check my progress to verify the objective.
You've successfully configured your app to send push notifications using AppSheet automation.
In this lab you learned how to:
When you have completed your lab, click End Lab. Qwiklabs removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Copyright 2022 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
Este contenido no está disponible en este momento
Te enviaremos una notificación por correo electrónico cuando esté disponible
¡Genial!
Nos comunicaremos contigo por correo electrónico si está disponible
One lab at a time
Confirm to end all existing labs and start this one