Activity Forums Salesforce® Discussions What are some Salesforce Apex best practices?

  • shariq

    Member
    September 22, 2018 at 4:28 pm

    Bulkify your code
    Avoid SOQL Queries or DML statements inside FOR Loops
    Avoid Hardcoding IDs
    Use of the Limits Apex Methods to Avoid Hitting Governor Limits
    Querying Large Data Sets

  • Parul

    Member
    September 22, 2018 at 5:05 pm

    "Apex Code Best Practices"
    Abstract.
    Best Practice #1: Bulkify your Code.
    Best Practice #2: Avoid SOQL Queries or DML statements inside FOR Loops.
    Best Practice #3: Bulkify your Helper Methods.
    Best Practice #4: Using Collections, Streamlining Queries, and Efficient For Loops.
    Best Practice #5: Streamlining Multiple Triggers on the Same Object.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos