---
schema_version: "1"
id: 8351b0de102979d8f3c7583f768de46ec686825e4b67aea69c5860e6f4d5bba8
title: Selected Record Flow Resource
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_resources_selected_record.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_resources_selected_record.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ea59e59576b563626af78e864cd49b7fd0d8bb73c61ce0aa5eb54ad42cdc8bb8
description: Store a record that you sort and filter from a data source. Use a selected record resource to access nested data from data graphs and other data sources, and reference it in flow elements for personalization, decisions, and assignments.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Selected Record Flow Resource

Store a record that you sort and filter from a data source. Use a selected record resource to access nested data from data graphs and other data sources, and reference it in flow elements for personalization, decisions, and assignments.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

A selected record resource lets you traverse nested, one-to-many data structures—such as orders and order line items in a Data Graph—and retrieve a single, well-defined record using sort and filter logic. You can then reference that record in flow elements wherever the resource type is supported.

Create a selected record resource from the Resources tab in Flow Builder or from resource selection in a supported flow element field.

The selected record resource is supported in segment flows and activation-triggered flows.

## Data Source

The collection to retrieve a record from. Search for and select a supported collection, such as a Data Graph path. For example, `$UnifiedIndividual > Individual > Orders`.

## Sort Conditions

Determines which record is returned when multiple records in the data source match the filter conditions. At least one sort condition is required.

 
| Field | Description |
| --- | --- |
| **Field** | The field in the data source to sort by. Multiple sort conditions must use fields at the same level of the data source. |
| **Order** | The sort direction: ascending or descending. |

## Filter Conditions

Optional. Narrows the collection before the sort is applied. Without filter conditions, all records in the data source are evaluated and the sort determines which record is returned.

 
| Field | Description |
| --- | --- |
| **Condition Logic** | Controls how multiple conditions within a single data source level are evaluated. Select **All conditions are met** (AND) or **Any conditions are met** (OR). Conditions across levels always use AND logic. |
| **Field**, **Operator**, **Value** | The field, comparison operator, and value that define each filter condition. |