[SalesForce] How to show all contacts by default

When I click on the contacts tab I want by default to show all contacts? How Do I Do this?

Best Answer

This is a common question, but you're probably missing the point of this tab if you think that all it is for is showing a list of contacts. This is called the contacts home tab, and its purpose is to give you access to your recent contacts and some utilities, such as the import contacts wizard, mass deletion wizard, reports, and more (your features will vary depending on your permissions and organization edition/features).

However, if you're still intent on giving up all this extra functionality for the sake of going directly into a view of all contacts (from the contacts home tab, all contacts is just a click away by clicking on "Go!"), you can override the default page. Just remember, you won't be able to easily access the page at all if you choose to do this.

First, go to Setup > Develop > Pages, and click on "New." Give it a name, and enter the following code:

<apex:page action="/{!$ObjectType.Contact.keyPrefix}" standardController="Contact" recordSetVar="contacts">
</apex:page>

Next, go to Setup > Customize > Contacts > Buttons, Links, and Actions, click "Edit" next to Contacts Tab, and choose your new page.

Now, when you click on the Contacts tab, it will take you to your last list view. Simply choose the "All Contacts" view, and salesforce.com will remember this selection for you. However, you won't be able to click on any standard element to return back to the "home" tab, so you'll lose immediate access to the Tools and Reports quick links.