Nice explanation covered all points which I needed . Thankyou
@chanduch41404 жыл бұрын
Thank you for sharing your knowledge
@thirumalareddy98222 жыл бұрын
Nice
@JAYESHSHEWALE5 жыл бұрын
Please create video for following: How to use map in apex classes smartly in different ways. How to fire the different queries on particular object.
@sfdcpanther5 жыл бұрын
Hey Jayesh, Are you following the Back To Basic Playlist it has examples on how to use Map while we were working on Apex Trigger scenarios
@rajendrajoyce5 жыл бұрын
Thanks for the session. We need complex apex test class examples to understand better could you do that.
@sfdcpanther5 жыл бұрын
Stay tuned for more videos
@SalesforceWorld1435 жыл бұрын
Yes...I'm also waiting for it @Rajendrs
@SandeepRahoolPV5 жыл бұрын
Hi What is the use of @testSetup and how to use that
@sfdcpanther5 жыл бұрын
Be patient, Next video is on the same topic and will be uploaded very soon
@lazy_wine5 жыл бұрын
Hi Amit, one quick question What to do when a trigger results in cpu timeout?
@sfdcpanther5 жыл бұрын
To avoid the CPU time-out limit you have below options 1 - Make sure that you are working on selective records that means put the maximum filter in your SOQL. 2 - Avoid for or for inside for loop as much as you can and use map for the same. 3 - Follow all the best practices to work with the bulkify data 4 - watch given video kzbin.info/www/bejne/fYfKc6uFgspliaM
@sfdcpanther5 жыл бұрын
5 - Reconsider your use case and see if yy can run some piece of code Asynchronously using @future method. This will break the context and you will get more CPU time as Asynchronous proceess have got 6x times more CPU time
@sfdcpanther5 жыл бұрын
6 - Avoid using loop for calculation and try to use Aggregate Query where this is possible. If you follow all these points you will never hit CPU time limit exceeded exception Hope this clears all your doubts regarding this exception
@lazy_wine5 жыл бұрын
@@sfdcpanther thank you.
@lazy_wine5 жыл бұрын
Hi Amit, do you hold any whatsapp group for Salesforce community discussion. If so could you share me the link. Cause I'm attending developer interview but they are asking a bit complex scenarios so it might help other also to learn.
@gauravbhardwaj53745 жыл бұрын
Panther Bhai (Amit) I have enrolled your LWC IN Udemy. Request to you Please make the video on the Interview based Scenario questions. f your students are mostly required the job in SF. Please make course on the undemy for the interview
@subashr10644 жыл бұрын
how Salesforce will understand that this test class is being created for specific Trigger/Trigger handler class
@sfdcpanther4 жыл бұрын
An apex trigger executes only when there is a DML on any standard or custom object. So to write the test class for apex trigger you need to do the DML on the same object which object the trigger is. For example is the trigger on on Account insert then you need to insert the Account in apex class.
@Lets_Roam3 жыл бұрын
@@sfdcpanther what if dml opr is going on with some other test classes, how do we know that myTestClass has covered this much of code ?
@sfdcpanther3 жыл бұрын
@@Lets_Roam When you check the test coverage in Developer Console it shows which method is covering % of that class or trigger