Thank you for sharing the solution, this is the trigger which I got in Accenture interview😊
@awesomekj58123 ай бұрын
Were you able to solve it ?
@AJAYKUMARGHANTA3 ай бұрын
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
@gauravjoshi38792 ай бұрын
can you please share that code
@sfstart96553 ай бұрын
@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.
@roysan8962 ай бұрын
what about after insert or before delete? I can introduce a new trigger or delete
@gauravjoshi38792 ай бұрын
sir , can we acheive this requirement with the help of set
@saikrishna29723 ай бұрын
Why did this not go into recusrion 🤔
@sfstart96553 ай бұрын
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
@saikrishna29722 ай бұрын
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