Useful handy commands for salesforce developers


1. Delete the records in object from Developer console 

Delete[Select id from Account limit 10000];

2. Abort the Batch jobs from Developer console

for(AsyncApexJob job:[SELECT Id, Status FROM AsyncApexJob WHERE Status IN (‘holding’,’Queued’,’Preparing’)])

3. Delete all Scheduled jobs from salesforce developer console anonymous window

for(CronTrigger CT: [Select Id from CronTrigger Limit 100])

Leave a Comment

Your email address will not be published. Required fields are marked *

Select Language »