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...

Комментарии • 13

  • @AJAYKUMARGHANTA
    @AJAYKUMARGHANTA 5 месяцев назад

    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

  • @ypravallika9080
    @ypravallika9080 5 месяцев назад +1

    Thank you for sharing the solution, this is the trigger which I got in Accenture interview😊

    • @awesomekj5812
      @awesomekj5812 5 месяцев назад +1

      Were you able to solve it ?

  • @gauravjoshi3879
    @gauravjoshi3879 4 месяца назад

    sir , can we acheive this requirement with the help of set

  • @roysan896
    @roysan896 4 месяца назад

    what about after insert or before delete? I can introduce a new trigger or delete

  • @sfstart9655
    @sfstart9655 5 месяцев назад

    @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.

  • @saikrishna2972
    @saikrishna2972 5 месяцев назад

    Why did this not go into recusrion 🤔

    • @sfstart9655
      @sfstart9655 5 месяцев назад

      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

    • @saikrishna2972
      @saikrishna2972 4 месяца назад

      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