Skip to main content

Custom List Views in Salesforce

Custom List Views in Salesforce

A view is just a list of records pulled from any object to be displayed basing on certain parameters.

Example : I have a lot of records in the Accounts object. But I do not want to see all the records. I just need to see a set of records basing on a City name. I would then create a view defining the filters like City = Texas and then it would return only the records of those Accounts where Texas is in the city field.

In view, you can also filter the fields that you would want to display.

Example : You have lot of customer related data like Name, Location, Year of establishment, and so on, about 30 fields. However, you may not need all this information to be shown in the view. You would then select the fields which you would want to be displayed and then only those fields , lets say Name , Location , to be displayed for all the customers who are in Texas.

Steps to create a Custom View :


  • Go to any object, lets say Accounts in our example.
  • Click on Create a new view 
  • Step 1. Enter View Name
    • Type in the View Name and the View unique name
  • Step 2. Specify Filter Criteria
    •  Here choose the criteria 
      •  : If you want to apply the filter taking on all the Accounts.
      •  : If you want to apply the filter only on Accounts you own.
    •   : If you want to apply filters only Accounts your team owns. [Will discuss on creating Account Teams in Salesforce later in a different post.]

      Once that is done , choose the filter criteria to filter horizontally , which means, selecting the fields with a particular filter value. Then add the filter logic .

      Filter logic is just choosing a combinations of conditions with the usage of OR , AND functions. For example you might want to create a custom view on Accounts object by choosing records where the City equals to San Francisco OR it equals to Portland, then here is how you do it :

      Filter By Additional Fields (Optional):
        FieldOperatorValue
        1.
        2.
        3.
        4.
        5.
        Add Row Remove Row
        Clear Filter Logic

         TipsHelp
    •  Step 3. Select Fields to Display : Next step is to select the fields that you would want to be displayed in the results.
    • Step 4. Restrict Visibility : You need to select who are the users you want this Custom view to be accessible to . Choose 
      •   : In case you want it to be available only to you.
      •    : If you want to make it available to all the users
      •   : If you want to make it available to some group of users.
    • Now Save it .
    The below will be the way your view shows the data : 

    Account

    Printable View (New Window)Help for this Page (New Window)
    Action
    Account Name
    Account Site
    Billing State/Province
    Phone
    Type
    Account Owner Alias
    Billing City
    Edit | Del | 
    CA
    (415) 901-7000
    San Francisco
    Edit | Del | 
    San Francisco
    Edit | Del | 
    OR
    (503) 421-7800
    Customer - Channel
    Portland

    Now that the view is created. You can choose the view from the list box and then you would see the records only that you defined by the conditions above.


    Comments

    Popular posts from this blog

    How to create a validation rule in Salesforce

    Validation rule is a filter or a criteria that validates the data that is pushed into an application and verifies if the data that has been entered is in accordance to the set standards. Example : Let's say, there is a field that is used to enter the Age of a Student. But per the organization rule, no student should be allowed to join the course if the age is not more than 25 years. So here you may write a validation rule saying that the Age field should not be more than 25. In case the age entered is more than 25, then the record is not allowed to be saved. You would see an error when you enter the age more than 25. Let me give you another example.  Say that there's a field to enter the Product code. And per the rule of the organization, the Product code should always start with PR. In case you enter any code other than the one that begins with PR, you would encounter an error. The benefits of Validation rules is that you can improve the quality of the data that is go...