Introduction to Actions

Unlock the power of actions in Glide.

A useful way to think about apps is through the way users interact with them. Two very basic levels of interaction are viewing and editing data. But often, apps need to be able to perform actions.

For example, in this app, there is a Button which, when clicked, will take people to a website. This is because the button has the action Open Link.

An app with an Open Link action.

You may not have thought of it this way before, but opening a Form is a type of action. Open Link and Show Form Screen are examples of native Glide Actions. In other words, they trigger things that happen in your app. But you can also integrate third party Integrations like SlackOutlook, or OpenAI into Glide and trigger messages, emails, generated text, and much more.

The Action Editor

As you can see in the image above, it's possible to manually add actions to components. However, Glide also has an Action Editor that lets you save and reuse actions and combine them into more complex workflows.

Complex workflows in the action editor.

Creating Actions

Navigate to the Action Editor by clicking the Actions icon on the top bar's right side.

The three different editor views in Glide.

If your app already has actions or you've created actions in the Layout Editor, they will automatically be listed in the left sidebar. Clicking on an action will load it in the Action Editor on the right.

To create a new action, click the plus (+) icon in the top left corner. Glide will prompt you to choose a data source table for your Action.

Creating a new action in the action editor.

Data Source

The data source you choose for an action determines which screens you can use that action on.

For instance, suppose you want to create an action where a user can tap a button on an inventory item and automatically send an email to an admin. The email should indicate that the stock level is low and include the current stock level.

For this particular action to work, it needs to know what stock item it is and the current stock level. So this action must be made with the Inventory table as the source.

This also means that this action cannot be triggered on a screen that has a different table. For example, it would not make sense to trigger this action on a Team Member’s profile.

This means that although actions are reusable, they are only reusable on screens that have the same data source.

Reusing Actions

Once you create an action, you can reuse it across your app so long as any other screen(s) where you use it share the same data source as the original action.

Reusing a saved action.

Sequences

You can have single step actions, or you can have multi-step actions. This means multiple things will happen when your action is triggered.

A sequence of actions.

To add new actions to the flow, hover just underneath an action and click the plus (+) button.

Adding an action to a sequence.

To edit actions, click on the action.

Editing an action in a sequence.

To re-order actions, click and drag the action.

Have a question about Introduction to Actions? Ask the Glide community.

Updated more than a week ago
Was this article helpful?