InformationTitle(OBX) Custom Mass Delete Board Button (Classic only)URL NameCustom-Mass-Delete-Board-Button-Classic-only-1610727788480BodyThis article describes the steps to create a custom mass delete button from a List View. The same feature is possible for Tasks also.The steps Go to Setup | Create | ObjectsClick on the Name of the Custom ObjectScroll down to the Buttons, Links & Actions section.Click on New Button or LinkName it as DeleteSelect the Display Type: List Button Do check the option: Display Checkboxes (for Multi-Record Selection)Behaviour: Execute JavaScriptContent Source: OnClick JavaScriptCopy and paste the following code: {!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')} try { var selectedRecords = {!GETRECORDIDS( $ObjectType.taskfeed1__Board__c )}; if(selectedRecords.length<1) alert('Please Select at Least One Row !'); else { userConsent = confirm( selectedRecords.length + ' Record(s) will be Deleted. Continue ? ' ); if(userConsent == true) { delResult = sforce.connection.deleteIds(selectedRecords); if (delResult[0].getBoolean("success")) { alert('The Record(s) were Deleted Successfully.'); window.location.reload(); } else alert( 'The Record(s) Could Not be Deleted. Error Message: ' + delResult[0].errors.message ); } } } catch(e) { alert('The Action Could not be Completed. Error Message: ' + e); } Select Save Now, we've to add it to the List View. Here you go: Go to Setup | Create | ObjectsClick on the Name of the ObjectScroll down to Search Layouts sectionClick Edit next to List View LayoutMove our new button from the Available Buttons to the Selected Buttons ListSelect SaveNavigate to the Precursive OBX Boards tab and select a List View.
Was this article helpful?Choose a general reason-- Choose a general reason --FeedbackUpload FilesUpload FilesOr drop filesSubmit