Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enable Bulk Editing

With a Bulk Edit button, users tick several records in the Data Table and change a field on all of them at once, with no flow to build.

At quarter end, a sales operations manager has to push a dozen deals into next quarter. She checks them in the table, clicks Bulk Edit, sets the new close date once, and every selected Opportunity is updated.

Before you start

  • A Data Table with a Query data source. See Data Table to set one up.

  • The fields users will change must be columns of the table.

  • Users need edit access to those records and fields.

Steps

1

Let users select rows

In the Properties tab, open the Content section:

  • Leave Hide Checkbox Column off, so each row has a checkbox.

  • Leave Max Row Selection empty, or enter a number above 1.

  • Turn on Show Number of Items Selected if users should see how many rows they picked (optional).

To cap how many rows can be selected and edited at once, click Advanced Options and set Max Row Edit and Selection.

2

Add the Bulk Edit button

  1. Open the Header section.

  2. In Actions, add an action.

  3. Set Label to Bulk Edit and give it a Name. Pick an Icon Name such as utility:edit if you like.

The button appears in the table header. See Configure Header Actions for more on header buttons.

3

Connect the button to Edit Selected Record(s)

  1. Open the Interactions tab.

  2. Under Header Action Click, click Add Header Action Click.

  3. Set Target Name to Bulk Edit.

  4. Set Type to Edit Selected Record(s).

  5. Under On Success and On Error, add a Show Toast if you want custom messages (optional).

Header Action Click interaction with Target Name Bulk Edit and Type Edit Selected Record(s)
Point the Bulk Edit button at Edit Selected Record(s).

After a successful update, the table reloads its query by itself, so you do not need a Refresh Query interaction. See Edit Selected Records for every setting.

4

Know what the modal shows

When users click Bulk Edit, a Mass Edit Records dialog opens.

  • It lists the fields from the table's columns that the user is allowed to edit.

  • Each field has a checkbox. Typing a value ticks it automatically.

  • Only ticked fields are written to the selected records. The others stay unchanged.

Mass Edit Records dialog listing Name, Stage, Amount, Probability and Close Date, with the Stage checkbox ticked and Negotiation/Review selected
Only ticked fields are written to the selected records.

If only one row is selected, the standard Edit Record dialog opens instead, with the full record.

5

Save and test

Click Save, then open the Lightning page where the component is placed. Edit Selected Record(s) does not run in Preview.

Select three Opportunities, click Bulk Edit, tick Stage, choose Negotiation/Review and click Save. The dialog closes, the table reloads, and the three rows show the new stage.

Troubleshooting

Bulk Edit shows "The interaction "Edit Selected Record(s)" is not executed in Preview."

This is expected. Record operations never run from the builder's Preview. Test on the activated Lightning page.

A field is missing from the Mass Edit Records dialog

The dialog only lists fields that are columns of the table and that the user can update. Add the field as a column, then check the user's field-level security. Formula fields and other read-only fields never appear. A column shown as a Progress Bar is not offered either: to let users bulk edit Probability, show it as a Percent or Number column.

Users cannot check more rows

Max Row Selection or Max Row Edit and Selection is set too low. Clear it or raise it in the Content section.

Clicking Bulk Edit with no row selected shows an error

The action needs at least one selected record and asks the user to select one and try again.

Last updated

Was this helpful?