In Flow, Can't perform Lookup(RecordLookup/FastLookup) on UserRecordAccess object
Last updated 2022-05-16 ·Reference W-2999166 ·Reported By 31 users
In Review
Summary
Cannot perform the Lookup(RecordLookup/FastLookup) on UserRecordAccess object.
Actual Result.
Error: INVALID_FIELD: Can select only RecordId, a Has*Access field, and MaxAccessLevel
Expected Result.
Record Lookup success.
Repro
1. Create one test account.
2. Create sample flow.
One element: Record Lookup or Fast Lookup.
i.e. Record Lookup
Lookup: UserRecordAccess.
Field: RecordId = above account_Id.
UserId = your user_Id.
Assign back Field: HasEditAccess, create local flow variable {!access};
Save, set it as start element.
3. Run the flow and you get following error.
Error: INVALID_FIELD: Can select only RecordId, a Has*Access field, and MaxAccessLevel
Workaround
The workaround would involve implementing the lookup in apex and exposing it to flow using the @InvocableMethod annotation.
Reported By (31)







Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.