A Create Dial List button provides a quick way of creating a Dial List from selected customers in a List View. The first step in enabling users to create a Dial List from a List View is to create a page that contains the code for the button.
Contacts and Leads views
To create a page that contains code for the Create Dial List button, perform the following steps:
- Go to the Administration Setup Page in Salesforce.
- On the left-hand side of the Salesforce window, in the App Setup section, expand Develop.
- In the expanded list of items, click Pages. Visualforce Pages appears.
At the top of the list of Visualforce pages, click New.
A new Visualforce Page appears.
Type the following information:
Field Description Example Label A label that identifies the page in Setup tools. Dial List From Custom Object Name The unique name that identifies the page in the API. The name must contain only alphanumeric characters. For further restrictions on field contents, click Help for this Page. DialListFromCustomObject Description An optional description of the page. Code for a button that creates a Dial List from selected entries in a List View. In Visualforce Markup, paste the following code, replacing 'My_Custom_Object__c' with the API Name for your object:
<apex:page standardController="My_Custom_Object__c" recordSetVar="listRecs" extensions="NVMConnect.ListFromListViewController"> <NVMConnect:ListFromListView dataSource="{!me}" /> </apex:page>
Click Save. Your newly created page appears.
You must now create a button to use the code. For information about adding a new button, see Creating a Create Dial List button for a standard object or Creating a Create Dial List button for a custom object.