Apex Triggers - 58 (Trigger Interview Scenario)
HTML-код
- Опубликовано: 1 янв 2025
- Revolutionize your Salesforce experience with Titan's powerful products
Create and automate custom document templates directly from Salesforce - titandxp.com/p...
Share, manage, and track the progress of e-signatures directly from Salesforce - titandxp.com/p...
Create, automate, and track custom web forms directly from Salesforce - titandxp.com/p...
Design and deploy dynamic no-code web portals and applications from Salesforce - titandxp.com/p...
Automate your entire organization’s processes with digital workflow - titandxp.com/p...
Create, automate, and track custom web surveys directly from Salesforce - titandxp.com/p...
I think we can also use account list and fetching related contacts and updating phone through map , its works for me actually in a simple way
can you please share that code
Thank you for sharing the solution, this is the trigger which I got in Accenture interview😊
Were you able to solve it ?
sir , can we acheive this requirement with the help of set
what about after insert or before delete? I can introduce a new trigger or delete
@SFDC NINJA ,I saw all Ur Trigger Videos .Champion effect loved it. In this scenario lets say Account A has contacts c1,c2,c3 .where C1 phone updated to 999 and C2 phone to 888 .so Account phone and all c1,c2,c3 phone now 888. But if u update multiple contacts with apex and show the difference in video i think it adds more value and understandability for Biggers.
Why did this not go into recusrion 🤔
Here in line 31 a check to make sure not include contact which phone is same to update rel cons of acc.This way recursion can be avoided although After Trigger is Used..Correct me if i was wrong
Ya i agree to your first point . Its good if we could skip that extra update on the record .
But even if its after trigger it would still has to go recursively right ? Or i might be understanding it wrong