# Enable Bulk Editing

## Overview

This guide covers the essentials of setting up Bulk Edit capabilities within your [**Data Table**](/dynamic-components/components/data-table.md). By combining row selection (checkboxes) with Header Actions, you can empower your users to update multiple records simultaneously, significantly reducing manual data entry time.

<figure><img src="/files/OyMynRB8kU2BdF64ldr7" alt=""><figcaption></figcaption></figure>

#### What You’ll Achieve

In this tutorial, you will learn how to:

* **Enable Multi-Row Selection**: Activate checkboxes that allow users to select multiple records for a single batch action.
* **Configure the "Edit Selected" Interaction**: Set up the specific interaction that launches a pre-built modal. This window automatically displays only the fields you have already marked as Editable in your data mappings.
* **Automate Mass Updates**: Use the built-in bulk update logic. Once the user submits their changes in the modal, the component automatically handles the mass update to Salesforce—no additional flow or complex logic is required

***

## Guided Steps

{% stepper %}
{% step %}

#### Set Up Your Data Table

Add the Data Table component to your page and establish your **Data Source** (usually a Query). Map your initial fields to columns and configure your basic layout settings, such as the header title and any necessary filters.
{% endstep %}

{% step %}

#### Enable Editable Fields

* Go to the **Data Mappings** section.
* Click on the **Column Name** you want users to be able to edit.
* Toggle the **Editable** attribute to **ON**.
* *Repeat this for every field you want to appear in the bulk edit modal*

<figure><img src="/files/T2sQjQ94KTAKGBhMl5E1" alt="" width="375"><figcaption></figcaption></figure>

The Bulk Edit feature only applies to fields explicitly marked as editable.
{% endstep %}

{% step %}

#### Allow Multi-Row Selection

To edit multiple records at once, your users must be able to select them.

* In the Properties Panel, find the **Max Row Selection** attribute.
* Ensure this is either **left blank** (for unlimited selection) or set to a number **greater than one**.

<figure><img src="/files/AhO21qVbfkH4EDG4X0dY" alt="" width="324"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Create the "Bulk Edit" Header Action

Now, create the button that users will click to start the process.

* Navigate to the **Header** section in the Properties Panel.
* Add a new **Action**.
* Label it clearly (e.g., "Bulk Edit" or "Update Selected"). This button will appear in the top-right corner of your table.

<figure><img src="/files/tXBuG889mYX6HofWejuG" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Make the header action functional

This is the logic that makes the button work.

* Switch to the **Interactions** tab.
* Select the **Header Action Click** event.
* **Target Name**: Select the "Bulk Edit" button you created in Step 4.
* **Type of Interaction**: Choose **Edit Selected Records**.
* (Optional) Configure a **Success Message** to confirm when records have been updated.

<figure><img src="/files/tpuwvWhTHm63UHSA0SHh" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Activate and test

Save your changes and preview the table. Select multiple rows using the checkboxes, click your new "Bulk Edit" button, and a modal will appear. Once you save changes in that modal, the Data Table will automatically commit them to Salesforce.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avonnicomponents.com/dynamic-components/tutorials/components/data-table/enable-bulk-editing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
