1. 7 Trigger events - Before : insert , update, delete , after : insert, update ,delete , undelete 2. 5 times trigger will be called ( 5 * 200 = 1000 records) 3. Yes, we can make call outs from triggers using aysnchronous apex(future methods). 4. using addError() method we can show the error message on the UI.
Ankit, I sincerely appreciate the fantastic series you provided on interview preparation. Could you please create a playlist on writing triggers, including interview questions on triggers and the trigger framework, along with an admin interview preparation playlist?😊
Q1. What are the different types of Trigger events? Ans 1. Before Insert, Before Update, Before Delete, After Insert, After Update, After Delete, After Undelete. Q2. How many times will a trigger be executed when inserting 1000 records? Ans 2. 5 times. Q3. Can a trigger make a call to the apex callout method? Ans 3. Yes, but use the @future(callout=true) to make asynchronous callouts from triggers. Q4. How to show the error messages on the page or the field using Trigger? Ans 4. use addError() method to show the error or page or the field.
Hi Ankit, Really you are doing an incrediable job. Just one thing want to add on , when you are describing any question like Recursion in Trigger, please try to give an example of code so that it would be easy for us to understand who are not pro in salesforce. Again Thank you so much.
Hi Ankit, thank you for a valuable video with plenty of useful information. I'd like to rise to what you've said in 15:10 about CRU of Custom Metadata Types from apex. I've had an interview in the past and had such a question: Are DML operations allowed with Custom Metadata Types? The answer was no. I think the Create / Update operation is considered as deployment, not a insert/update. Could you give a comment on how you understand CRU operations from apex for Custom Metadata Types? Thank you again for your excellent work and for providing such a useful resource for Salesforce dev interview preparation.
Governor Limits SOQL Limits: 100 queries per transaction. 50,000 records total. 2000 records per query. SOSL Limits: 20 SOSL queries per transaction. 2000 records per query. Can search across 20 objects per query and 200 fields per object.
Yes, After Winter ’24 release, you can now create a complex validation rule that was previously unachievable using a standard validation rule. This can be accomplished through the use of before-save flow, combined with the newly introduced custom error
1. 7 Trigger events - Before : insert , update, delete , after : insert, update ,delete , undelete
2. 5 times trigger will be called ( 5 * 200 = 1000 records)
3. Yes, we can make call outs from triggers using aysnchronous apex(future methods).
4. using addError() method we can show the error message on the UI.
Correct
What an informative video 👏👏
Glad you liked it Diksha
Sir 🙏 Thanks for sharing it's very helpful for everyone,
Can you pls share the videos admin part for the interview.
Will surely plan for it
@@TechJourneyWithAnkit +1
Ankit, I sincerely appreciate the fantastic series you provided on interview preparation. Could you please create a playlist on writing triggers, including interview questions on triggers and the trigger framework, along with an admin interview preparation playlist?😊
Noted
Q1. What are the different types of Trigger events?
Ans 1. Before Insert, Before Update, Before Delete, After Insert, After Update, After Delete, After Undelete.
Q2. How many times will a trigger be executed when inserting 1000 records?
Ans 2. 5 times.
Q3. Can a trigger make a call to the apex callout method?
Ans 3. Yes, but use the @future(callout=true) to make asynchronous callouts from triggers.
Q4. How to show the error messages on the page or the field using Trigger?
Ans 4. use addError() method to show the error or page or the field.
Correct
Hi Ankit, Really you are doing an incrediable job. Just one thing want to add on , when you are describing any question like Recursion in Trigger, please try to give an example of code so that it would be easy for us to understand who are not pro in salesforce. Again Thank you so much.
Thanks and noted
Hi Ankit, thank you for a valuable video with plenty of useful information. I'd like to rise to what you've said in 15:10 about CRU of Custom Metadata Types from apex. I've had an interview in the past and had such a question: Are DML operations allowed with Custom Metadata Types? The answer was no. I think the Create / Update operation is considered as deployment, not a insert/update. Could you give a comment on how you understand CRU operations from apex for Custom Metadata Types?
Thank you again for your excellent work and for providing such a useful resource for Salesforce dev interview preparation.
from insert/update i mean deployment of metadata only using deploy container class.
Governor Limits
SOQL Limits:
100 queries per transaction.
50,000 records total.
2000 records per query.
SOSL Limits:
20 SOSL queries per transaction.
2000 records per query.
Can search across 20 objects per query and 200 fields per object.
Very good
hi Sir, please upload interview questions related to flows
Surely will plan for it
Make interview questions on flow builder
Sure. next one will be on Flow builder only
Hi ankit,
custom validation errors can also be done using flows right ?
pls crct me if im wrong
Yes, After Winter ’24 release, you can now create a complex validation rule that was previously unachievable using a standard validation rule. This can be accomplished through the use of before-save flow, combined with the newly introduced custom error
@@TechJourneyWithAnkityes ankit..thanks