3

Question

Assuming an object with a user lookup, how can I create a list view (standard, not VF) that returns all objects related to the current user?

Background

We've got a compliance object, and the person who fills it out is populate in a user lookup. There is no owner since the object is master detailed to another object. Is there anyway to get the same effect as the "My Records" list views but for a custom user lookup? Seems like each user is going to have to create a list view on their own, but was curious if there were any non-coding solutions to making one that can work for everybody (like the "My Records" list views).

1 Answer 1

4

The scope of a listview looks weird both in listview documentation and in Force.com IDE (examples at the bottom of the linked page). It's not like there's a hidden filter that goes OwnerId = User.Id...

You could try making a numeric formula along the lines of IF(User_Lookup__c = $User.Id, 1, 0) and then referencing it in your filters?

4

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .