Apex Triggers - 54 (Infosys Interview Scenario)

Поділитися
Вставка
  • Опубліковано 3 чер 2024
  • 💻 Join the Titan Community : Discover Exclusive Insights on LinkedIn / mycompany
    💻 Explore the Power of Titan : Visit Our Official Website Now 🔗 titandxp.com/
  • Наука та технологія

КОМЕНТАРІ • 16

  • @pranaysawarkar7071
    @pranaysawarkar7071 26 днів тому

    hello Ninja how are you..? I have one more scenario from UST who ask Trigger in Interview

  • @pranaysawarkar7071
    @pranaysawarkar7071 Місяць тому +1

    Hello ninja please also tell us how used database methods and try catch for creating triggers

  • @goldylodhi2116
    @goldylodhi2116 28 днів тому

    🎉

  • @pranaysawarkar7071
    @pranaysawarkar7071 Місяць тому +1

    questions:=> "write a trigger for an Account object where child Account ParentId update with parent Account Id and in Account we have Parent Account Checkbox for create parent Account."
    For example: --> We have indian oil is a parent Account for that we checked the parent checkbox field and we have child with unchecked parent checkbox like indian oil Panjab, indian oil Maharashtra, indian oil Karnataka etc . We need to update parent indian oil Id in parent Account field in child Account .
    Similar indian oil we have more parents like Hindustan petroleum, Bharat petroleum, Eser, and Shell etc and they also have child and we put parent company name in front of every child like indian oil we have how we will do that the exact parent company matches the exact child record.

    • @pranaysawarkar7071
      @pranaysawarkar7071 Місяць тому

      might be I explain properly in given comment now you understand scenario properly.

  • @pranaysawarkar7071
    @pranaysawarkar7071 Місяць тому +1

    hello ninja the same scenario is already create by you in your older questions, its a repeated question you solved before😅

    • @sfdcninjas
      @sfdcninjas  Місяць тому

      Ohh i just realised this actually one of my subscriber mailed me this scenario that's why i created it.

    • @pranaysawarkar7071
      @pranaysawarkar7071 Місяць тому

      Hello ninja thanks for replying to my comment I need to ask about the scenario that I shared with you on 50 no question are the scenario solved

    • @sfdcninjas
      @sfdcninjas  Місяць тому

      can you please explain this scenario i did not understand it properly "write a trigger for an Account object where child Account ParentId update with parent Account Id and in Account we have Parent Account Checkbox for create parent Account." for example we have indian oil its a parent Account and we have indian oil india, indian oil shrilanka, indian oil xyz etc child of that indian oil parent then we need to update parent account Id in child, for same as USA oil, China oil also the parents"

    • @sfdcninjas
      @sfdcninjas  Місяць тому

      Can you please provide it here again .

    • @pranaysawarkar7071
      @pranaysawarkar7071 Місяць тому

      @@sfdcninjas ok

  • @pranaysawarkar7071
    @pranaysawarkar7071 26 днів тому

    Trigger.: Opportunity is a child of Account and Case. When ever an Opportunity is created and updated the opportunity Account Id should be Populated in Case Custom field Account__c. Also the Opportunity is deleted then removed AccountId from Account__c from case..?😊

    • @sfdcninjas
      @sfdcninjas  25 днів тому

      Sure you will get a video on it next week
      thanks for the scenario

    • @pranaysawarkar7071
      @pranaysawarkar7071 25 днів тому

      @@sfdcninjas the older scenario is not solved