Uncategorized
CRT-450 Salesforce Certified Platform Developer – Testing, Debugging and Deployment – 17% Part 3
5.5- Invoking Apex in Execute Anonymous vs. Unit Tests Hey, guys. This is section five testing, and this is lecture number five invoking Apex and Execute Anonymous versus unit tests. And this lecture will mainly talk about the difference between writing Apex and invoking it in an Execute Anonymous block versus writing it and invoking it in a unit test. First of all, let’s start with the Execute Anonymous. The Execute Anonymous as the ability to run any line of Apex code, just like the ability to run any line…
CRT-450 Salesforce Certified Platform Developer – Testing, Debugging and Deployment – 17% Part 2
5.3- Test Data Hey guys. This is section five testing. And this is lecture number three, test data. In this lecture we’ll talk about how to generate test data to be used in our unit tests in order to perform the test methods. Need data in order to function. You need to feed data to the test methods in order to function, in order to perform the tests. But how can we we get these data? First of all, let me go back to our developer console and let me…
CRT-450 Salesforce Certified Platform Developer – Testing, Debugging and Deployment – 17%
5.1- Testing Deployment Requirement and Testing Framework Hey, guys. This is section five testing. And this is lecture number one testing, deployment Requirement and Testing Framework. In this lecture, we’ll talk about testing in general. We’ll talk about manual versus automatic testing. We’ll talk about testing requirements for deployment and salesforce, and why it is required to first test your code before deployment. And finally, we’ll talk about testing framework and Salesforce course. First of all, why testing is important, why it is a crucial part. Well, with testing, you…
CRT-450 Salesforce Certified Platform Developer – Retired Lectures
3.1- Object Schema – part 1 Hey guys. This is section three, logic and Process Automation. And this is lecture number one, Object schema. And this lecture will talk about how we can access our own metadata information from within Apex, how we can access objects and fields metadata information from within Apex. Note I advise you to watch this lecture after fully understanding Apex. But for now, let’s get started. First of all, what’s object schema? Object schema is a way to programmatically learn about the metadata of your…
CRT-450 Salesforce Certified Platform Developer – Process Automation and Logic – 38% Part 6
3.16- Using Declarative functionality and Apex together – Demo Okay. So now we will show you how to use Apex with their processes and flows. For that we will open our and then we will use the developer console. So this is where we will create the classes with the vocable method annotation and with the methods that will be shown in the processes and the flows. So let’s go to Setup and let’s open Process Builder. Okay, so let’s now create a process, a simple process on the account…
CRT-450 Salesforce Certified Platform Developer – Process Automation and Logic – 38% Part 5
3.15- Programmatic techniques to prevent security vulnerabilities This lecture is about programmatic techniques to prevent security vulnerabilities. The topics of this lecture are cross site scripting attacks, circuit injections cross site requests forgery Attacks data access control using the wish sharing keyword, this lecture discusses several security risks in Apex and Visual Force, and what are the different ways to mitigate them. Apex and VisualForce pages can expose an. org to different types of security risks like cross site scripting attacks, cross site request forgery, and so called injections. In…
CRT-450 Salesforce Certified Platform Developer – Process Automation and Logic – 38% Part 4
3.12- Exception Handling – Demo So I will go to the developer console and then I will open the execute anonymous window. And now let me type some code that will throw an exception. So I will create a variable of type integer and it’s called i. And then I will create another variable that is called a of type integer. And I will reference the Ivariable that is null. So what will happen now? I will get a null pointer exception because I’m trying to reference a variable that…
CRT-450 Salesforce Certified Platform Developer – Process Automation and Logic – 38% Part 3
3.10- Governor Limits – Demo So I will go to the developer console and I will open the Execute anonymous window. First of all, we start by the DML statements limit. As you can recall from the slides, the number, the maximum number of DML statements that can be issued by one transaction is 150. So now let’s try to exceed this and let’s see what will happen. For that will create a full loop that will loop more than 150 times. So this for loop will loop 200 times…
CRT-450 Salesforce Certified Platform Developer – Process Automation and Logic – 38% Part 2
3.9- Apex Triggers Pattern for Efficient Data Processing In the previous lecture, we have talked about triggers, about how to design them, where to write them, and when to use them. And then at the end of the previous lecture, we have shown you some examples of triggers. And then we have ran these triggers and we have tested them. In this lecture, we’ll talk about how to design Apex triggers for effective data processing. What to avoid when a trigger and what are the trigger best practices. There are…
CRT-450 Salesforce Certified Platform Developer – Process Automation and Logic – 38%
3.7- SOQL, SOSL and DML – Part 4 – DML Demo First of all, I will create an account so it will be account acceleration. And then I will specify the mandatory field. So ACC name equals test account. And then I will use the DML statement insert. So this is the stand alone statement and let’s see what would happen. So I did create an account and then I specified the field name to be test account. And then I did insert this by using the standalone DML statement…