Send Edited Record Grid Rows to Apex or a Decision
Use what users changed in a Record Grid after the screen: skip a step when nothing changed, loop over the edited deals, or pass them to an Apex action.
Once the sales manager has adjusted the three deals, the flow can act on what she changed. It can skip the approval request when she changed nothing, collect the deals she moved to Negotiation/Review, or hand the edits to an Apex class that recalculates the discount. Record Grid writes her edits to three output variables each time she clicks Save.

Before you start
An editable Record Grid on Opportunity records, with at least one row marked Editable. Edit and save values in a Record Grid sets up the editing and the Save interaction.
For the Apex step only: an invocable Apex class, written and deployed by a developer.
The three output variables
Edited Rows
Record collection (Opportunity here)
One record per edited deal, with its Id and only the fields that changed.
Edited Rows Full Data
Record collection (Opportunity here)
The same records with every value the grid loaded, edits included.
Edited Rows Serialized
Text
Edited Rows as a JSON array: one object per edited deal, with Id and the changed fields under their API names.
When they are written:
Every time the user clicks Save in the grid footer. Each Save lists every deal edited since the screen opened, not only the latest changes.
Cancel writes nothing. The outputs keep the values of the last Save, and stay empty if the user never saved.
They are written as soon as the user clicks Save, before Update Record(s) returns. If that save fails, they still hold what the user entered.
Steps
Make sure the user saves before leaving the screen
The outputs are filled only by Save. Wire the grid so that a successful save moves the flow to the next screen (Flow Navigation under On Success of Update Record(s)), as shown in Edit and save values in a Record Grid.
Loop over the edited deals
On the Deals Changed path, add a Loop on Edited Rows Full Data. Inside it, a Decision tests the current deal, for example StageName Equals Negotiation/Review, and an Assignment adds the matching deals to a collection for the approval request.
Loop on Edited Rows Full Data here, not Edited Rows: in Edited Rows, a field the manager did not change is empty, so a test on Stage fails for a deal where she changed only the Amount.
Pass the edits to an Apex action
Add an Action element and pick the Apex action. Map its input to Edited Rows when the class only needs what changed, or to Edited Rows Full Data when it needs the whole record. The developer's class receives the records like this:
Use Edited Rows Serialized when the destination takes text instead of records: a Long Text Area field that keeps an audit trail of the edits, or an action that sends them to another system.
Troubleshooting
Related tutorials
Edit and save values in a Record Grid: set up the editing and the Save interaction this page reads from.
Compare records side by side with Record Grid: build the grid and its Get Records.
Implementing a bulk edit on the Data Table: edited Data Table records handed to a second flow and an Avonni Apex action.
Was this helpful?
