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 :)
Awesome Example bro! This was really useful. your contribution for this community is praise worthy.
Thank you Ravi for the constant support and positivity. New content coming along.
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.
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. 😇
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.
Absolutely. Feedback noted. Do check out the upcoming use cases. Complexity will definitely increase a bit as more and more use cases come along.
Hi, once the code is written try to execute it, after the execution make code changes. Plz don't make code changes before
This is awesome but It's bit difficult to understand by map. Can't we go with parent child SOQL?
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 🙂
Awesome explanation 👏 👌
thank you Gurulakshmi!
@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.
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.
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?
@@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.
hi can you plz share the pdf of all the 30 questions............it will be very beneficial.....thanks in advance
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 :)
Hlo sir there is dought how soql query is going to work here pls help me
Sure let me share an explanation
@@salesforcemakessense sir will you share here or send me you are insta I'd I will DM you.
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.
feeling bit difficult to understand it
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
@@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.
Hi,
How's the learning going? Are you still struggling with maps or gotten better with the use cases? Do let me know :)
@@salesforcemakessense not many youtubers do this, checking on their viewers/commenters update on the learning curve 🔥😍
can you simply it little more if possible ..btw amazing videos .. disheartened to see less subscribers :-(
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
go slow
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