Newer Version Available
Associate Actions to Records with Process Builder
Process Builder is a point-and-click automation tool that you can use to design
processes that kick off when a new or updated record meets specific criteria. After you
create flows and quick actions, you can associate them with a record by building a process.
Use Process Builder to create a process that, when triggered, creates a RecordAction. The
RecordAction represents an association between an action and the record that kicked off the
process.
RecordActions appear in the Actions & Recommendations component on the record page, ready for your users to start.
-
Define the process
properties.
The process properties uniquely identify your process.
-
Configure the process
trigger.
Every process includes a trigger, which tells the process when to start. How you configure that trigger depends on what type of process you’re creating.
-
Add process
criteria.
Define the criteria that must be true before the process can execute the associated actions.
-
Add actions to your
process and create a record from
the process.
After you define a criteria node, create a record from the process when criteria are met. Actions are executed in the order in which they appear in the Process Builder. Specify the following.
- Action Type: Create a Record
- Record Type: RecordAction
Set field values for the Create a Record action.Field Type Value Action Picklist Specify the action that you want to associate with the record. Action Type Picklist Specify whether the action is a flow or a quick action. Order Number Specify the order of the action among all actions associated with this record. Actions are ordered in comparison to other actions in their pinned or unpinned region. If two actions have the same order, then they are sorted by their last modified date. Parent Record ID Field Reference Specify the record associated with the action. For most use cases, select the ID for the object you’ve selected for your process trigger. For example, if you used the contact object, set the value to [Contact].Id. Is Mandatory Boolean If set to True, the flow is required. When a mandatory screen flow is launched, if the user tries to close the tab or window, a message appears and reminds the user to complete the flow. The reminder doesn’t appear for quick actions or autolaunched flows. Hide Remove Action in UI Boolean If set to True, users can’t see the Remove option for the action in the component. However, actions can still be deleted using the API. Pinned Picklist Specify whether the action is pinned to the top or bottom of the component. To display the action in the unpinned region, use None. - Activate your process.
When your criteria are met and your process runs, the actions that you specified are
associated with the parent record.
Example
Create a process that adds a required flow for users to verify a contact’s
information, like an email address, when their phone number changes.
- Choose the contact object, and start the process when a record is created or
edited.
- Create criteria for when the [Contact].MobilePhone
field changes.
- Add a Create a Record action, and specify RecordAction for the Record Type
- Set field values for the record, pointing to your
Verify_Information flow and the parent record ID.
To encourage the user to complete this flow, specify the Is Mandatory field
as True.
- Activate the process.
When the contact’s MobilePhone field changes, the Verify Information flow opens as a subtab on the contact record. An asterisk next to the flow indicates that it is mandatory.