Loading
The Trailblazer Community is now read-only Read More
Add the Criteria-Based Search and Filter Component to Screen Flows

Add the Criteria-Based Search and Filter Component to Screen Flows

Embed the Criteria-Based Search and Filter component into guided Screen Flow processes. Users can search and filter records mid-flow, select one or more results, and pass the selected record IDs to subsequent flow steps for downstream processing, record creation, or automation.

Required Editions

Available in: Enterprise, Unlimited, and Developer Editions
User Permissions Needed

To add a component to a screen flow:

Manage Flow

AND

Use Criteria-Based Search and Filter system permission

  1. In Flow Builder, add or open a Screen element in your flow.
  2. From the Components panel, drag Criteria-Based Search and Filter Intake onto the screen canvas.
  3. Configure the component properties:
    • Search Configuration (Required): Enter the API name of an active SearchCriteriaConfiguration metadata record (e.g., VehicleInventorySearch). This configuration defines search criteria, filters, and result display. You can reuse configurations from App, Home, or Record pages.
    • Search Context (Optional): Provide JSON to prefill and optionally lock filter fields. Use this to carry forward selections from earlier flow screens (e.g., customer, location, work order). See sample structure below.
    • Maximum Selection (Optional): Enter a number to cap how many records users can select. Leave blank for unlimited selection. Set to 1 for single-record selection. When the limit is exceeded, users see a warning toast. Clicking Next while over the limit displays an error and keeps users on the screen. This setting automatically disables "Select all across pages" to prevent exceeding the cap.
  4. Connect the Selected Record IDs output variable (a collection of record IDs in JSON format) to a flow variable for use in later screens, Apex actions, or record-create elements.
  5. Save and activate your flow.
Note
Note
  • searchCriteriaFieldName: API name of the filter field from your search configuration
  • searchFieldCriteriaValueList: Array of values to prefill (supports multiple values for multi-select fields)
  • readOnlyFields: Array of field API names that users cannot modify on the screen

The Search Context JSON allows you to create dynamic, context-aware search experiences where earlier flow decisions constrain or guide the search criteria.

 
Loading
Salesforce Help | Article