function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
V AnandV Anand 

How to create visulforce page button for below requirment.

We can assign leads through the lead assignment rule but I want to show unassigned leads in visualforce using  a button

(This visualforce page will  show a list of any unassigned leads just above a button)

 

Could anyone help me to get above requirment.

Best Answer chosen by Admin (Salesforce Developers) 
Gunners_23Gunners_23

There is no code for creation of button.

 

Please follow the below steps

 

Go to Customize--->Leads--->Buttons and Links---->custom Links and Buttons

 

Click New--->Fill the label,Name,Description,Display Type (select List Button) ,Content (Visualforce Page)

 

in the content dropdown select the visualforce Page which shows unassigned leads

All Answers

Gunners_23Gunners_23

Create a  lead list button and onclick of that button open the "Visualforce Page" containing list of unassigned leads

V AnandV Anand

Thank you for reply..

 

could you please provide sample code for this button creation...

 

 

Gunners_23Gunners_23

There is no code for creation of button.

 

Please follow the below steps

 

Go to Customize--->Leads--->Buttons and Links---->custom Links and Buttons

 

Click New--->Fill the label,Name,Description,Display Type (select List Button) ,Content (Visualforce Page)

 

in the content dropdown select the visualforce Page which shows unassigned leads

This was selected as the best answer
V AnandV Anand

thanks for your valuable answer.

 

I  have craeted a button with other visualforce page. because my visualforce page which displays the unassigned leads is  not working properly.

 

How to create that visualforce page for unassigned leads list? 

V AnandV Anand

 

 

I  have craeted a button with other visualforce page. because my visualforce page which displays the unassigned leads is  not working properly.

 

How to create that visualforce page for unassigned leads list?