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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • After Trigger.New next context variable is Trigger.Old. This variable returns a list of the old versions of sObject records. This list is only available in Update and Delete trigger types.
    Let’s understand this in depth.
    You can also check our premium Salesforce Development Course which will include assignment, test series, and real-time industry level projects to give you a deeper insight into how everything works.
    s2-labs.com/fr...
    www.udemy.com/...
    If you are looking to learn Salesforce Administrator and App Builder course, then check out our course on the following Platforms:
    www.udemy.com/... - One of the Highest rated Course on Udemy
    • Salesforce Administrat...
    s2-labs.com/fr...
    Grow your business with THE BEST SALESFORCE IMPLEMENTATION and CONSULTANCY SERVICES
    Reach us out here: cyntexa.com​
    Get the BEST SALESFORCE COURSES & TRAINING here s2-labs.com/
    Shrey is a Chief Executive Officer at Cyntexa, a SILVER Salesforce Consulting Partner in the USA, UK, UAE, Australia, Singapore & India, having a vibrant team of 100+ certified Salesforce experts, including developers and architects, consultants, administrators, and MVPs. Shrey took Cyntexa from 5 to 100+ people in less than 1.5 years while multiplying the revenues by 8 times. Shrey has been an entrepreneur since the age of 13 as he was buying and selling stuff and making money in the school itself. Shrey is the Youngest Salesforce MVP in the world who firmly believes in providing value to the people and building long-term value-based relationships. His mission is to disrupt the way professional technical services are delivered by bringing back empathy for the end-user rather than being operational and transactional. Shrey is popularly known as Salesforce Hulk in the Salesforce ecosystem as he was the first one to start creating videos on Salesforce on his TH-cam channel named as Salesforce Hulk, and that too at the age of 19.
    Shrey is also the founder of S2 Labs, a Salesforce Training Company, being the 1st one to start Salesforce training in Rajasthan, India, and currently selling his courses worldwide. Shrey is also a marvelous speaker who actively presents topics revolving around Salesforce and Entrepreneurship at various worldwide conferences. Shrey has also been a Judge in multiple technical and business hackathons organized by the Government of India, like the Smart India Hackathon. Shrey is a leader with out of the box thinking who emphasizes not only on hitting the sales targets but also providing an amazing experience to the customers and employees. Shrey believes in building a team with strong values, ethics, and behavior, leading to the amazing culture at Cyntexa.
    STALK SHREY ON:
    Instagram: / ​
    Facebook: / ​
    Twitter: / iamshreysharma​
    LinkedIn: / imshreysharma
    And for getting more Updated on Salesforce Follow:
    Facebook: / s2labs.shrey
    Linkedin: / admin
    twitter: / s2_labs
    Instagram: / s2_labs
    #salesforce #SalesforceHulk #Salesforcedeveloper #learnsalesforce

ความคิดเห็น • 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.............

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

    Nice sir.

  • @aslambagwan6032
    @aslambagwan6032 2 ปีที่แล้ว

    Thanks 👍👍 👍👍👍

  • @sallubhainagpur
    @sallubhainagpur 11 หลายเดือนก่อน

    Thanks

    • @SalesforceHulk
      @SalesforceHulk  11 หลายเดือนก่อน

      You're Welcome 😊

  • @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

  • @devipriyaskitchen9453
    @devipriyaskitchen9453 3 ปีที่แล้ว

    Hi it'v very nice teaching super

  • @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

  • @maheshkalambe1792
    @maheshkalambe1792 3 ปีที่แล้ว

    Are you reposting these videos?