> For the complete documentation index, see [llms.txt](https://docs.gridmate.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gridmate.io/advanced-guides/grid-actions.md).

# Grid actions

Choose how to add actions to a grid, run them in the background, save grid changes, or drive a grid from outside the page.

Grid actions add buttons and behavior to a GridMate grid: toolbar, mass and record actions, your own components, background jobs and Apex that runs on save.

The guides differ by **what you want to add**: a ready-made action, a custom component, a background job, a save-time rule or an outside command.

## Which guide do I need?

| Guide                                                                                                  | Use it to…                                                                                                                       | Good to know                                                                                                        |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| [Grid - Mass/Record Actions](https://docs.gridmate.io/advanced-guides/grid-actions/actions-library.md) | Use and configure the toolbar, global and record actions, such as Mass Update, Clone, Mass Email and Call Flow.                  | A record action needs selected records.                                                                             |
| [Grid - Custom Action](https://docs.gridmate.io/advanced-guides/grid-actions/grid-custom-action.md)    | Launch your own Aura or LWC component as an action on the selected records.                                                      | An LWC component is launched through the `gmpkg:DataGridCallLWCComponent` action.                                   |
| [Grid - Bulk Action](https://docs.gridmate.io/advanced-guides/grid-actions/grid-bulk-action.md)        | Run an action in the background with queueables or batches, and follow progress and errors in the Bulk Action Monitor.           | GM - Bulk Action Monitor must be configured on the Lightning App utility bar, with **Start automatically** checked. |
| [Grid - Mass Edit Button](https://docs.gridmate.io/advanced-guides/grid-actions/mass-edit-setup.md)    | Add a list view button that opens any list view as an editable GM - ListView Grid.                                               | The button is a link with the display type List Button without checkboxes.                                          |
| [Grid - Command Bridge](https://docs.gridmate.io/advanced-guides/grid-actions/grid-command-bridge.md)  | Drive an open grid from a Flow, Apex, an integration or an AI agent: search, filter, sort, group, reload, Mass Update or Export. | Available from GridMate 12.31.                                                                                      |
| [Grid - Apply & Save](https://docs.gridmate.io/advanced-guides/grid-actions/grid-apply-and-save.md)    | Let users choose to save their column, sort, filter and group-by changes permanently.                                            | Turned on in the DataGrid Settings custom setting.                                                                  |
| [Save Hook Framework](https://docs.gridmate.io/advanced-guides/grid-actions/save-hook-framework.md)    | Run Apex before or after GridMate saves records, for validation or external callouts.                                            | Not a Salesforce trigger: it works only within the GridMate component.                                              |

## Go further

* [Grids](https://docs.gridmate.io/product-tour/grids.md): the grids these actions are added to.
* [Grid - Advanced Configuration](https://docs.gridmate.io/advanced-guides/grid-setup/grid-configuration.md): generate grid property values step by step with the Config Wiz.
* [GM - Bulk Action Monitor](https://docs.gridmate.io/package-reference/components-library/utilities-and-monitoring/gm-bulk-action-monitor.md): every property of the monitor component.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gridmate.io/advanced-guides/grid-actions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
