Agentforce and Flow actions
Give an Agentforce agent and Flow two actions: find records as a grid, and change records in bulk with a preview first.
- Who can
- A Salesforce admin with Agent Builder access
- Where
- Setup → Agentforce Agents → a topic → This Topic's Actions
- Edition
- Foundation (free)
- Last updated
Both actions run as the person using them, so they only see and change what that person can.
| Action | What it does |
|---|---|
| Find records as a GridWorks grid | Finds records of one object that match simple conditions, says how many there are, and returns a link that opens them as an editable grid |
| Change records in bulk with GridWorks (preview first) | Sets one field on many records. Without Run now it only previews; with Run now it starts the change in the background bulk engine, which logs every record |
#Add them to an agent
- In Setup, open Agentforce Agents and open your agent.
- Open the topic, go to This Topic's Actions and choose New → Create new action.
- For Reference Action Type choose Apex, then Find records as a GridWorks grid. Repeat for the bulk change action.
- Keep the input and output descriptions as they are. Mark Grid link, Summary and Preview as shown to the person.
- Add a topic instruction such as: "Before changing records in bulk, always run the bulk change without Run now, show the preview, and only run it with Run now after the person confirms."
#Writing conditions
Conditions are separated by semicolons and use field API names. Supported: =, !=, >, <, >=, <=, contains, not contains, starts with, is blank, is not blank.
StageName = Prospecting; Amount > 100000; Name contains Acme; CloseDate < 2026-12-31; Description is blank#In Flow
Both actions are in Flow Builder under Action → GridWorks, with the same inputs and outputs.
