Salesforce Developer Tutorial - How to Mass Delete Records using Apex

Coding With The Force
Coding With The Force
2.4 هزار بار بازدید - 11 ماه پیش - DISCLAIMER: Make sure prior to
DISCLAIMER: Make sure prior to deleting records in your Salesforce org that this is your employers desired end state for these records, and that they wouldn't prefer to archive/offload them to another system!

In this episode we go over the best ways to mass delete records in Salesforce using both a batch job and a queueable and why you might use one over the other.

Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?busines...

Get Coding With The Force Merch Here: https://my-store-d20559.creator-sprin...

Follow all of our social media here:

Patreon: Patreon: CodingWithTheForce
Github: https://github.com/Coding-With-The-Force
Facebook: Facebook: codingwiththeforce
Twitter: Twitter: Coding_Force
Instagram: Instagram: codingwiththeforce

Salesforce development books I recommend:

Advanced Apex Programming: https://amzn.to/3lXi8to
Salesforce Lightning Platform Enterprise Architecture: https://amzn.to/2R0D4BQ
Mastering Salesforce DevOps: https://amzn.to/3lTtTRN

Good Non-SF Specific Development Books:

Clean Code:  https://amzn.to/35PuMDU
Clean Architecture: https://amzn.to/35FYo6A

-----------------------------------------------------------------------------------------------------------------------

Table of Contents:

0:00 - Intro/Thank You
0:35 - Episode Intro
2:32 - Example Record Deletion Using a Batch Class
8:00 - Testing the batch class record deletion
12:02 - Pros and Cons of Batch Apex
13:23 - Example record deletion using Queueable Class
20:28 - Testing the queueable class record deletion
24:34 - Outro

DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios.

#salesforce #salesforcedeveloper #salesforceadmin
11 ماه پیش در تاریخ 1402/06/16 منتشر شده است.
2,426 بـار بازدید شده
... بیشتر