New answers tagged

3 votes

Queries on Large Object (>1 million rows) Fail to Execute

First, a full recycle bin can cause problems, because IsDeleted is not indexed. Consider hard-deleting records as you delete them with the emptyRecycleBin function. I suspect the Queueable is probably ...
user avatar
  • 434k
0 votes

How can I delete a contact which was associated with a customer portal user?

Through code you can also acheive this. In developer console execute below code: User u=[select id,Name, IsPortalEnabled from user where id='xyz' limit 1]; u.IsPortalEnabled=false; update u;
user avatar
2 votes

Delete Mass records

You can able to delete the custom object records by using Truncating feature without using apex code. If you do not see Truncate button in the custom object, go to Setup | Customize | User Interface |...
user avatar

Top 50 recent answers are included