|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/learn-salesforce-apex-triggers-from-watchman/
课程评论:没有评论
课程名称:从看门人那里学习Apex触发器 - Salesforce开发 课程概述: 本课程旨在帮助希望成为Salesforce开发人员的学生解答一些常见问题,例如:在“before context”和“after context”中应写入何种逻辑?在哪个对象上创建触发器?为何在“before context”中不对通过保存过程的记录进行DML操作?什么是触发器处理程序类?在触发器中,前后上下文是什么意思?Apex触发器的上下文变量是什么?以及我们为何需要它们? 学习Apex触发器需要时间和指导。初学者常常在这些问题上感到困惑,尤其是那些从Java转到Salesforce的人。课程讲师分享了自己的经验,通过一个个人故事说明了学习过程中可能遇到的挑战,以及如何通过更深入的理解和实践克服这些挑战。 课程以简单易懂的方式展示Apex触发器的重要概念,使用安全保卫员/看门人的比喻帮助学员更好地理解。同时,课程强调理解触发器的工作原理是成功编写触发器的关键,即使遇到问题,学员也将知道如何排查和解决。 本课程将涵盖以下内容: - 什么是Apex触发器? - 上下文变量的定义及其用途 - 在“before context”和“after context”中应该使用的逻辑 - Apex触发器的最佳实践 - 常见错误及解决方案 - 如何处理与Apex触发器相关的困惑 课程适合所有希望提高其Apex触发器技能的开发者,尤其是那些在工作中遇到困难,或对触发器的实际操作存在疑问的人。若学员在实现具体需求方面有困难,本课程也提供了一些实用建议与思考点,以帮助他们更好地理解和应用Apex触发器的知识。 结语: 实践是掌握概念的关键。课程希望学员在学习后能够独立编写触发器,并自信地应对各种触发器相关的挑战。
do I need to write my logic in before context or after context?On which object do I need to write my trigger?why do we not write DML on the record that goes through the save process in before context?What is trigger handler class?what is before and after context in triggers?what are context variables in apex triggers and why do we need them?Hi there, I just shared a few questions that I had when I start my career as a developer. I usually get the same set of questions from the people who are starting their careers as salesforce developers or from the people who are moving to Salesforce from strong Java background.Let me share a small secret here. Learning Apex trigger needs time and guidance. It's not you. it is about Apex triggers. you heard it right.If you ask me why? from experience and understanding, all I could say is. the starting point of Learning of trigger involves multiple points.yes, we need to learn and keep a track of multiple points at once to get started. Even though you are good with apex. If you are starting with apex triggers you tend to make mistakes.Let me share my story here. I had written the logic for one of my requirements. Insert scenario was working fine but not the update scenario. I had wasted half an hour debugging and validating the logic written but I didn't find any reasons why it wasn't working.You will laugh when you hear the reason why it was not working but trust me it left no stone unturned to figure out the reason.finally, I admitted the fact that I need some help. I went to a senior developer for assistance, after sharing the requirement and the issue that I was facing. The first question he asked me helped me figure out what was the issue and also pointed out my understanding of triggers.he asked me, "is the trigger listening to update event?". that's it. His question was my answer. Just by adding the trigger event, my issue was resolved. I still remember his question. when I begin to write my trigger.:Dwhen I think back and that incident. I was good with the logic part of the requirement. I failed in terms of technical understanding of triggers/working of triggers.If I had scared you with the technical terms above. My apologies, I wanted to share my exact story.As they say, "Every master is once a beginner". I wouldn't consider myself as a master, there is always room for improvement.I shared this story to let you know that with time and practice things would fall into place. You will relish your moments when you could help/assist a person who is going through the same struggle.this course is just that. over my years of experience, I found a way to learn the triggers the easy way. yes, you need to put in some effort but that would be very less compared to debugging my update scenario._______________________How does this course help me?simple, just by presenting Apex trigger in a presentable way to impress you.:DTo grab the concept, I took the example of a security guard/watchman. After this course, you will realize all these years security guards was teaching these concepts. we just ignored them. Next time when you meet a security guard/watchman, please thank them.How can you be sure that I can start writing triggers after this course?once you understand the working of the triggers, you will be in the right space to put your logic into the salesforce org. even though if your trigger is not working, you will know where to look and fix it accordingly.Disclaimer: A little bit of practice is needed to retain the concepts for a longer time.:). I can see that look on your face. Yes, I wanted to be realistic. without practice on Day 1, you feel that you mastered it. Week 1, you will feel low on confidence. Month 1, you will rarely remember that you took the time to learn Apex triggers.why give half a try. if you really want to learn to code.If you are reading this line. My job is half done. we can talk about the summary of what would you learn in this course.what are Apex triggers?what are context variables?what kind of logic goes in before and after context triggers?Best practices in apex triggers.common errors in apex triggers.confusion with apex triggers.if you are wondering, I know these concepts. Do I really need to take this course?I have a simple question for you. are you struggling with the working of the trigger or are you struggling with the implementation of the requirement.if it has to do with the working of triggers, feel free to check out this course. if it has to do with the implementation part, couple of points.1) are you clear with the requirement.2) is there any limitations from salesforce.