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/ - Наука та технологія
hello Ninja how are you..? I have one more scenario from UST who ask Trigger in Interview
Hello ninja please also tell us how used database methods and try catch for creating triggers
🎉
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.
might be I explain properly in given comment now you understand scenario properly.
hello ninja the same scenario is already create by you in your older questions, its a repeated question you solved before😅
Ohh i just realised this actually one of my subscriber mailed me this scenario that's why i created it.
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
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"
Can you please provide it here again .
@@sfdcninjas ok
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..?😊
Sure you will get a video on it next week
thanks for the scenario
@@sfdcninjas the older scenario is not solved