Apex Triggers - 18 (Accenture Interview Question)

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

КОМЕНТАРІ • 16

  • @noumandanish5762
    @noumandanish5762 8 днів тому

    Instead of using a for loop to get a set of accountId you can directly just query on opportunity with the required filters [Select Id, StageName from Opportunity where AccountId In: trigger new and Isclosed = false and Account.Close_all_Opps__c = true and Probability>= 70];
    And then with just one for loop on oppList we can update the value of Stage to Closed Won and update oppList

  • @arunimakashyap6207
    @arunimakashyap6207 Рік тому +1

    Very clear
    Please keep posting more scenarios.

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

    I’m getting good learning from this series thanks a lot

  • @sonalijadhav9446
    @sonalijadhav9446 10 місяців тому

    Thank you for Sharing

    • @sfdcninjas
      @sfdcninjas  8 місяців тому

      Thanks for watching!

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

    Great sir

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

    I have scenario, how to create related records in account and contact when a record created in the lead object,, here the question is to create records for two objects(asked in interview)

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

      Hi Govardhan don’t worry i will create a video on it .

  • @gubbalasovinay5746
    @gubbalasovinay5746 6 місяців тому

    one suggestion bro if you are writing logic instead of explaining that logic, explain why you are writing that logic more clearly so that we understand better
    Thank you🙂🙂

  • @harinath1821
    @harinath1821 6 місяців тому

    Anyone provide full code here

    • @sfdcninjas
      @sfdcninjas  5 місяців тому

      you can access it on Salesforce geek website thanks

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

    Great Example 🫡