Every time an account website is updated, update the website field on all its child contacts

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Welcome to Apex Triggers! In this video, we'll be showing you how to use Apex Triggers to automatically update the website field on all child contacts whenever an account website is updated.
    This use case is perfect for businesses that have multiple contacts associated with a single account and want to ensure that their contact information is always up to date. By using Apex Triggers, you can automate this process and save time and effort on manual updates.
    If you want to continue learning Salesforce (for free), Subscribe Salesforce Makes Sense here
    / @salesforcemakessense
    To ensure a smooth learning experience,
    I have curated playlists that will help you prepare for interviews, train on specific domains and boost your Salesforce journey.
    The Complete Administrator Course
    • Learn Salesforce Admin...
    30 Scenario Based Questions:
    • 30 Salesforce Scenario...
    Learn Salesforce in Bytes - Short videos on Salesforce features
    • Salesforce Bytes
    Learn Salesforce With Me - Topic based Explanatory Videos
    • Learn Salesforce with Me
    65 Salesforce Interview Questions:
    • 65 Interview Questions...
    100 Salesforce Interview Questions:
    • 100 Salesforce Intervi...
    If you would like to acknowledge my efforts and want me to continue training and mentoring, you can support me here.
    www.buymeacoff...
    For any kind of questions, training & mentorship, queries & concerns,
    Feel free to drop a mail at
    salesforcemakessense@gmail.com
    #apextriggers #triggers #salesforcedevelopment
    That’s all from this video. See you in the next video. Till then, breathe long and keep learning :)

ความคิดเห็น • 37

  • @ravigrover1923
    @ravigrover1923 ปีที่แล้ว +3

    Awesome Example bro! This was really useful. your contribution for this community is praise worthy.

    • @salesforcemakessense
      @salesforcemakessense  ปีที่แล้ว

      Thank you Ravi for the constant support and positivity. New content coming along.

  • @HelloitsmeReena
    @HelloitsmeReena 4 หลายเดือนก่อน +3

    i am trying to solve this 30 scenarios this month and i found this a little tough as i have just started learning triggers. thank you for teaching this good and ellaboratly. please share the codes it will be very useful for beginners to write and practice. i do make my own notes while your teaching but it takes hours for me especially as it was tough. Thank you so much. please do share the code in the description box of every trigger.

    • @salesforcemakessense
      @salesforcemakessense  4 หลายเดือนก่อน +3

      Hi Reena, glad to know you have taken up the challenge this month.
      I would suggest instead of just watching try writing the code along with me and try executing and testing it on your side as well
      Then you wont need the code snippet and it will help build confidence. 😇

  • @pampariabhiram01
    @pampariabhiram01 ปีที่แล้ว +3

    Really awesome. Please increase the complexity level in problems after beginner level in triggers. we want to learn different kind of requirements with medium and hard level in triggers.... Kudos to your Hard work.

    • @salesforcemakessense
      @salesforcemakessense  ปีที่แล้ว +1

      Absolutely. Feedback noted. Do check out the upcoming use cases. Complexity will definitely increase a bit as more and more use cases come along.

  • @rajeshganne8359
    @rajeshganne8359 3 หลายเดือนก่อน +2

    Hi, once the code is written try to execute it, after the execution make code changes. Plz don't make code changes before

  • @akshaygunshettiwar7080
    @akshaygunshettiwar7080 4 หลายเดือนก่อน +1

    This is awesome but It's bit difficult to understand by map. Can't we go with parent child SOQL?

    • @salesforcemakessense
      @salesforcemakessense  4 หลายเดือนก่อน

      If you can master maps, it will help you always as you might not be able to put a qiery everywhere but you can use a collection wherever you want 🙂

  • @gurulakshmi8945
    @gurulakshmi8945 ปีที่แล้ว +1

    Awesome explanation 👏 👌

  • @sagarr7940
    @sagarr7940 11 หลายเดือนก่อน +1

    @Salesforce Makes Sense : in this trigger second if condition when we queried the contact records and updated the account website field. Again why we need to pass it in one more list? We can directly update the "conRecords" list where we have queried the records.

    • @salesforcemakessense
      @salesforcemakessense  11 หลายเดือนก่อน +1

      Changes may or may not reflect on the same list so you have to take them to another and update the list. Always safe than sorry.

    • @sagarr7940
      @sagarr7940 11 หลายเดือนก่อน +1

      I did not understand why i got the like for my comments. I'm trying to know if that is the best practices to pass into another list and update?? Really trying to understand more behind this?

    • @salesforcemakessense
      @salesforcemakessense  11 หลายเดือนก่อน

      @@sagarr7940 yes you can choose to work on the same list but sometimes when you are working with trigger.new or trigger.old, the list is read only and cannot be mutated. So safe to keep a list and use that.
      Also there might be times when you dont want to update the entire list so a new list with limited records will work out to be a better solution.

  • @abhinavpratapsingh1201
    @abhinavpratapsingh1201 6 หลายเดือนก่อน +1

    hi can you plz share the pdf of all the 30 questions............it will be very beneficial.....thanks in advance

    • @salesforcemakessense
      @salesforcemakessense  4 หลายเดือนก่อน

      hello my friend! I don't have the questions in pdf format as of now.
      I will let you know in case I am able to share the entire keynote :)

  • @akhilserikar5937
    @akhilserikar5937 4 หลายเดือนก่อน +1

    Hlo sir there is dought how soql query is going to work here pls help me

    • @salesforcemakessense
      @salesforcemakessense  4 หลายเดือนก่อน

      Sure let me share an explanation

    • @akhilserikar5937
      @akhilserikar5937 4 หลายเดือนก่อน

      @@salesforcemakessense sir will you share here or send me you are insta I'd I will DM you.

    • @salesforcemakessense
      @salesforcemakessense  4 หลายเดือนก่อน

      Hi Akhil,
      The SOQL is querying all contact records. But it needs to pick only those whose parent account matches the accounts we have in our map as keys.
      So, the WHERE clause checks to filter only those contacts whose accounts (parent) are in the map.
      Hope that helps.

  • @automationtester730
    @automationtester730 10 หลายเดือนก่อน +1

    feeling bit difficult to understand it

    • @salesforcemakessense
      @salesforcemakessense  10 หลายเดือนก่อน +1

      I would suggest review the video and try doing it yourself along with me.
      Each line you write, try understanding whats being done and why.
      That would be the best way to assess and understand

    • @automationtester730
      @automationtester730 10 หลายเดือนก่อน +1

      @@salesforcemakessense I'm still trying with you the same problem Hope the Map comes handy thanks for the Hope and reply. Admiring to write code as like you Impressive.

    • @salesforcemakessense
      @salesforcemakessense  4 หลายเดือนก่อน +2

      Hi,
      How's the learning going? Are you still struggling with maps or gotten better with the use cases? Do let me know :)

    • @r.goswami8525
      @r.goswami8525 4 หลายเดือนก่อน +1

      ​@@salesforcemakessense not many youtubers do this, checking on their viewers/commenters update on the learning curve 🔥😍

  • @HImadriPaul-rh9sz
    @HImadriPaul-rh9sz ปีที่แล้ว +1

    can you simply it little more if possible ..btw amazing videos .. disheartened to see less subscribers :-(

    • @salesforcemakessense
      @salesforcemakessense  ปีที่แล้ว

      Hi Himadri, You can start from the very beginning. I have an entire playlist for Apex Triggers. You can start from there and complete all the use cases till Use Case 30. That way, it will not feel difficult. Sharing the playlist link for reference: th-cam.com/play/PLEKSN4V4WEnLERCMYfvLAfg6cYTSI4hc0.html

  • @rajeshganne8359
    @rajeshganne8359 3 หลายเดือนก่อน

    go slow

    • @salesforcemakessense
      @salesforcemakessense  3 หลายเดือนก่อน

      Hi Rajesh, since this is already recorded, I will encourage you to reduce the speed at 0.75x to match the speed I hope.
      Give it a try and I will incorporate your feedback in new tutorials I release