In Salesforce Flow Builder, when using the Get Records element (Record Lookup or Fast Lookup) to query the UserRecordAccess object, the UserRecordAccess.RecordId field must be included in the fields to retrieve — even if RecordId is already being used as a filter criterion.
Failing to include RecordId in the retrieved fields causes a flow runtime error.
The UserRecordAccess object has a special restriction: the RecordId field must always be explicitly selected in any Record Lookup or Fast Lookup element that queries UserRecordAccess. This restriction applies regardless of whether RecordId is also used as a filter condition in the same element. This behavior is documented in the Salesforce SOAP API Developer Guide and is working as designed.
When the RecordId field is not selected in the Get Records element, the flow produces the following runtime error:
"This error occurred when the flow tried to look up records: RecordId field must be selected. You can look up ExceptionCode values in the SOAP API Developer Guide."
The UserRecordAccess entity has an API-level restriction requiring RecordId to always be part of the field selection in a lookup operation. This is unlike standard objects where filtering by a field does not require that field to also be retrieved. The Salesforce SOAP API Developer Guide documents this behavior for the UserRecordAccess object.
000383422

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.