Thank you so much Sir, i have been having a hard time understanding triggers and now i understand why i write each line it is very useful. there are many youtube channels when scenarios gets tougher then they don't explain why they wrote certain lines and for beginners its really stressful. thank you for the effort you have put in Sir. Thank you.
@sankuramana64218 ай бұрын
Super neat and clean
@dharmeshtayade48562 ай бұрын
you explain very well but why did you not create a separate class for that trigger?
@fredericklane74519 күн бұрын
Nice tutorial series. How do we endure that if a field in Billing Address is blank, that it cannot be saved because it's not equal to the already-save shipping address. And, what about when an existing Account has Billing Address updated?
@natarajans19614 ай бұрын
Hi bro, I have seen plenty of videos regarding trigger, but you nailed it bro, really thanks for your teaching bro.
@harshtyagi58062 жыл бұрын
Well explanation with scenarios
@sfdcninjas2 жыл бұрын
Thank you Harsh
@Royi8083 Жыл бұрын
Thank you bro, I've been struggling with Apex and triggers before watching your videos
@sfdcninjas Жыл бұрын
Thanks ❤️
@shubhamshriwash61118 ай бұрын
if we only have isbefore in our trigger , then i dont think we need to check for "if(!trigger.new.isempty())" ,please correct me if iam wrong..?
@rajeshprogram24884 ай бұрын
Hi just wanted to know do u need null check
@himanshudamani29982 жыл бұрын
Great explanation 👍
@sfdcninjas2 жыл бұрын
Glad it was helpful
@prabhavgoel33092 жыл бұрын
Very well explained keep it up brother 👍
@sfdcninjas2 жыл бұрын
Thank you brother
@akshultyagii2 жыл бұрын
Well Explained 👍
@sfdcninjas2 жыл бұрын
Thank you so much
@ravigrover19236 ай бұрын
Hi Badal, Is this logic also same or different because its working same as your use case ------ trigger AccountTrigger on Account (before insert) { if (trigger.isBefore && trigger.isInsert){ // copy Billing address fields to mailing address fields if (!trigger.new.isEmpty()){ for (Account acc : Trigger.new) { if (acc.BillingStreet != null || acc.BillingCity != null || acc.BillingState != null || acc.BillingPostalCode != null || acc.BillingCountry != null){ acc.ShippingStreet = acc.BillingStreet; acc.ShippingCity = acc.BillingCity; acc.ShippingState = acc.BillingState; acc.ShippingPostalCode = acc.BillingPostalCode; acc.ShippingCountry = acc.BillingCountry; } } } } } ------