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
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.
Add the Bulk Edit button
Open the Header section.
In Actions, add an action.
Set Label to
Bulk Editand give it a Name. Pick an Icon Name such asutility:editif you like.
The button appears in the table header. See Configure Header Actions for more on header buttons.
Connect the button to Edit Selected Record(s)
Open the Interactions tab.
Under Header Action Click, click Add Header Action Click.
Set Target Name to Bulk Edit.
Set Type to Edit Selected Record(s).
Under On Success and On Error, add a Show Toast if you want custom messages (optional).

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.
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.

If only one row is selected, the standard Edit Record dialog opens instead, with the full record.
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
Related tutorials
Enable Inline Editing: let users change values cell by cell instead.
Configure Header Actions: more buttons for the table header.
Define Row Actions: actions on a single row, from the row menu.
Last updated
Was this helpful?
