+ Start a Discussion
Mary Pamishetty 3Mary Pamishetty 3 

GETRECORDIDS in vf page

How can use custom button with javascript on visual force page.
I've used below code but I'm getting 'URL No Longer Exists  <apex:commandbutton value=" Process" action="{!URLFOR($Action.Lead.Begin__Process,Lead.id)}"/>
 
Mary Pamishetty 3Mary Pamishetty 3
I used this : <apex:commandbutton value=" Process" action="{!URLFOR($Action.Lead.Begin__Process,id)}"/>
Now I'm getting below error , even though I'm admin
Insufficient Privileges
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.