Sunday 6 September 2015

Add a list view button for deleting records in Salesforce



Create a javascript list view button











{!requirescript("/soap/ajax/28.0/connection.js")}
{!requirescript("/soap/ajax/28.0/apex.js")}

sforce.connection.deleteIds({!GETRECORDIDS($ObjectType.Account)});
location.reload();

 
 Instead of Account use your object name and add this button in object's search layout --> list view.

No comments:

Post a Comment