Home | Back to Courses

Learn Apex Triggers from watchman - Salesforce Development

Course Image
Partner: Udemy
Affiliate Name:
Area:
Description: 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
Category: Development > Programming Languages > Salesforce Apex
Partner ID:
Price: 49.99
Commission:
Source: Impact
Go to Course