10 Salesforce Apex Best Practices You NEED to Know!

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • As you may know, Apex is the coding language behind Salesforce, allowing developers to execute flow and transaction control statements on Salesforce servers in conjunction with calls to the API.
    Like any coding language, Apex has a series of best practices to make sure it works effectively and doesn’t cause issues for you and your org. What are these best practices? Well, stick around and find out!
    00:00 Intro
    00:35 Bulkify Your Code
    01:15 Avoid DML/SOQL Queries in Loops
    02:10 Avoid Business Logic in Triggers
    02:45 Use a Single Trigger per Object Type
    03:40 Explicitly Declare Sharing Model
    04:34 Avoid Hard-Coded IDs
    05:59 Use SOQL for Loops
    07:12 Naming Conventions
    07:45 Modularize Your Code
    09:34 Test Multiple Scenarios
    Prefer reading? Check out the blog post: www.salesforceben.com/12-sale...
    Follow us on our socials! 📱
    LinkedIn: / salesforce-ben
    Facebook: / salesforceben
    Twitter: / salesforceben
    And don't forget to subscribe!
    #salesforce #salesforceadmin #salesforcedeveloper #salesforceforbeginners #trailblazercommunity #tech #apex #code #codinglanguage #tips
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 2

  • @cTnOo
    @cTnOo ปีที่แล้ว +3

    I just wanted to say how much I enjoyed your video, as I started working in this area last year, your videos always help me. Thanks to your guidance, I was able to earn my first certification, Associate, and I'm now working towards the Administrator Certificate by the end of the year.
    Your work is invaluable to the Salesforce community, and I truly appreciate the effort you put into creating such high-quality content. Congratulations on another great video, and keep up the fantastic work!

    • @OfficialSFBen
      @OfficialSFBen  ปีที่แล้ว +1

      We're more than happy to help Cleuton, thanks for the amazing feedback and good luck on the rest of your Salesforce journey!