In Salesforce, when you have a custom lookup relationship field pointing to the User object, you may want to filter a list view so it only shows records assigned to or related to the person currently logged in. This article explains how to use the special value $USER in list view filter criteria to achieve this dynamically, without hardcoding a specific user's name.
To filter a list view by the currently logged-in user using a custom lookup relationship field, you can use the value "$USER" in the filter criteria.
The $USER value is a dynamic global variable that Salesforce resolves to the ID of the currently logged-in user, making it compatible with lookup-based filter fields on list views.
The steps are as follows:
Note: For details on special values like "$USER", please refer to the relevant documentation.
005239566

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.