Skip to content

Instantly share code, notes, and snippets.

@subhashini95
Last active June 23, 2017 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subhashini95/b3b9ff808040d9ac4926e09163f567e3 to your computer and use it in GitHub Desktop.
Save subhashini95/b3b9ff808040d9ac4926e09163f567e3 to your computer and use it in GitHub Desktop.
{!REQUIRESCRIPT("/soap/ajax/38.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/38.0/apex.js")}
var records = {!GETRECORDIDS($ObjectType.Employee__c)};
var strIDs='';
if (records[0] == null) {
alert('Please select a record');
}
else {
for (var n=0; n<records.length; n++) {
if(strIDs == '')
strIDs = records[n];
else
strIDs = strIDs + "," + records[n] ;
}
window.location.href = '/apex/MassManager__MassDelete?deleteIds='+strIDs + '&selectedObject=Employee__c&retURL='+ window.location.href;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment