Trigger.Old | Context Variable in APEX Triggers | Learn Salesforce Development

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 17

  • @kapilsane
    @kapilsane 2 роки тому +1

    Sir thank you very much for all the videos, u uploaded ,my basics are now very much clear.

  • @manikandandurai5850
    @manikandandurai5850 2 роки тому

    Nice explanation bro. It's very useful to Others.............

  • @BalajiBalaji-jv1gt
    @BalajiBalaji-jv1gt 2 роки тому

    Sir you must write the list here with out list we can process only one record when we declare list type variable it can show error message everytime

  • @MDASIF-wo7ck
    @MDASIF-wo7ck 3 роки тому

    Can we use Best practices ..?

    • @sachinrnayak3420
      @sachinrnayak3420 3 роки тому +4

      Yes Asif, its better if we follow the best practices while writing any Trigger
      Some of the best practices are like,
      Let us know if this will help you.
      1) Better to write One Trigger Per Object or as few triggers as possible for an object.
      2) Logic-less Triggers
      3) Context-Specific Handler Methods.
      4) You have to Bulkify your Code.
      5) Avoid SOQL Queries or DML statements inside FOR Loops. ...
      6) Using Collections, Streamlining Queries, and Efficient For Loops.
      7)Avoid using DML Statements inside for loops
      8) Querying Large Data Sets.

    • @bhagyashrinagapure4612
      @bhagyashrinagapure4612 3 роки тому +1

      Yes. we can consider best practices are like bulkify your code, avoid using query inside For loop, use collections, write one trigger per object and avoid using DML inside For loop.

    • @sivakrishnaunnagiri1122
      @sivakrishnaunnagiri1122 3 роки тому

      Yes Asif.we need follow sales force best practices like below.
      1) One Trigger Per Object
      2) Logic-less Triggers
      3) Context-Specific Handler Methods
      4) Bulkify your Code
      5) Avoid SOQL Queries or DML statements inside FOR Loops
      6) Using Collections, Streamlining Queries, and Efficient For Loops
      7) Querying Large Data Sets
      8) Use @future Appropriately
      9) Avoid Hardcoding IDs

    • @unboxingcheck
      @unboxingcheck 3 роки тому

      Yes

  • @sallubhainagpur
    @sallubhainagpur Рік тому

    Thanks

  • @aslambagwan6032
    @aslambagwan6032 2 роки тому

    Thanks 👍👍 👍👍👍

  • @SalesforceExperienceOfficial
    @SalesforceExperienceOfficial 3 роки тому +1

    Nice sir.

  • @devipriyaskitchen9453
    @devipriyaskitchen9453 3 роки тому

    Hi it'v very nice teaching super

  • @maheshkalambe1792
    @maheshkalambe1792 3 роки тому

    Are you reposting these videos?