From my programming I was using epics okay that that result. So now let me tell you about this malicious activity Okay. So now see what happened here when I say multi tenancy nothing but if you see let me try it there is a big server we have okay in the server in the server what happened if you see there are many division we have okay. So in this division nothing but this is for one application, this is for one application this one application. So, if you see this is completely Salesforce platform for your for example, your company have one. So, for them, they have given one specific part of the server or like this for mine company that is one part of servers, okay?
So it's nothing but if you think one apartment is there, so you want to Building is there in that building many apartments are there just think the building nothing but the salesforce.com server complex server in the server or in the building you can take an apartment let's consider this is nothing but your apartment and the second one is nothing but my apartment okay and third one nothing but on his apartment, okay. So all these apartments we have here. So now see multiple tenancy as staying in one building, same way, cell phones toxic multiple tenants they have in the same server. So now if in this application or Indian one flat one apartment if I made some changes, it is only applicable to me. If I made this change of the color it's only applicable to this apartment. Same way the application harder writing what logic you write it will reflect only on your place.
And in this part, you may have a two way street Escape will be escape adventure. So, now even inside that apartments, you can customize something right. So that customization will be applicable for all sailing, I can it is learning for applicable to any applications. So in one Salesforce you will log in, you have sales, you have service, your marketing, you have some custom application, the artist class for today, it will be applicable to all the applications. What do you think like, okay, I write a classical African only in the sales model. No, you can use that in any applications.
Okay, so it supports multi tenancy completely. Okay, so for that we have governor limits that we'll discuss some sometime later. Okay, so as we stay in multi tenancy architecture, so how we focus on the Salesforce governor limits, what are the best practices to follow that, okay, we'll discuss all that all that stuff's also in that way, we just completed There's nothing but seek more about I'm talking to the theoretically because you're stating deduction. What is what? Okay. But when then from this class we'll jump to the programmatically.
Okay? So there's nothing more a stroke of strongly typed oops language, which supports polymorphism pointer moves, nothing but polymorphism inheritance, abstracts and everything. Okay? And in advantages, it's integrated data focused language, which is easy to use, and the versioning to the lower and awkward to newer version, it's quite easy by just clicking on a button okay. And also we support the multi tenancy architecture okay. So, when I showed us these topics, okay, as I said from the starting point and talking to using the topics, so first thing, whenever you have something which is difficult to handle in a point and click, point and click functionality, like nothing but like workflow or approval versus our facility, Or maybe your validation rules formula fails if you are not able to accept that then we usually go to the logic or development so now let's see if you want to write something called complex logic okay then we go for epics programming if you want to create a page like a forum user interface you create by using a page or maybe by using the lightning component or maybe you want to invoke some logic complex logic from the process builder that moment we write logic in the epics Okay, logic in a sense it may be a small method maybe a class maybe about maybe a bass class maybe signal class anything that may be okay when the two systems okay and you want to integrate that two system together, okay.
If the two systems integration is quite complex, where we cannot use the any Connect connectivity, like provided nothing but Salesforce connector or many Be additional data connector if not there, then we use to write some integration when you do integration you need write some operational I mean at least for me we can use you know complex logic okay nothing but when you want to process something in the system in a bulk that time you can use the batch programming that time you can use in the complex validation in the lightning component Visualforce page in integration point never in a simple way the things which you cannot achieve in our business logic, then that moment you have to jump to programming your write the logic there, which is not possible by pouring concrete and all this punch will see, for example, I want to write something whenever somebody sends an email to a particular email address of my system.
I want to create a record Okay, so, as an admin, you know, there is no such a functionality available for us where I can receive One email. And from that email, I can create a record in my system. So at that moment, what else do I have to write some logic for that? Nothing but I can define my email service. Okay, so how to write this email service? What are the precautions I have to take?
What is the best practice to follow everything we'll discuss, okay. It may be email service, it may be web service integration, it may be a normal trigger, okay, in all the points we need to write up it's nothing but the best illustrate that when there is some complex thing to process thing means it may be anything, maybe a lightning, Amman ad maybe a validation rules, anything, there are many validations which you can write just click and point functionality, but some validations as being admin, your team does a lot of validations we write in the trigger on or in some classes and how to do that, that that logic What do we have, it's not achievable. Usually. The example what I said Mr t okay. So that they might come to me the complex thing to process which is not provided by out of box functionality are not provided then I go to write the office for me, okay.
So now whenever I'm writing articles I need to think how I write as a developer okay i the system, how it is going to understand or as a new job how it is going to process your program looking at what happened parsing how developer write it, okay, Second thing, how system understanding and parsing, I wrote a program system understood it now when a new user accessing that then how the system will process that in the initial point, how it is processing okay. So when I say all this point is nothing but let me explain this diagram to you. It will give you a little bit more clarity. Okay. Loving word, you See? So, if you see this diagram here right now, so nothing but you see I have a database here I think what my address which we have defined here but it is nothing but my complete artist image okay so now whenever you're writing up it's quite close okay I just wrote one small artists last like no here I said the moment is happening it is going and saved somewhere like when you create a record itself some in some way when you write a class where it is being saved person Okay.
Now, before save of this class, is there anything selfish things? For example, I just wrote something like this, you basically gonna say do the systems check something Yes, you check something. So what is this we prompt okay. So how this development happens? Okay. So what happened?
Let me make this diagram for you, instead of a spending from this diagram like You may be missed somewhere, I will make this diagram one by one and I will make it understand that. Okay. So let me go Let me make a new title for you. So now being a developer, I am writing one small class, okay. I'm writing a small class, which my system I just modified something, some class, I click the Save button, nothing but my class, I click the Save button, the moment I saved, there is someone in the system who checked my writing this class in proper syntax. If not, don't take this class to save in the system.
Nothing but there is something we have which we call database in the system. Okay, so I'm here Here, I have one database metadata. This is we call metadata server. Okay. So here, all the classes are being saved. Okay.
In the server, there is a metadata server. So The method of the class being saved. So now, if you see here, the moment I clicked on the sale system hard fought do here, system checks syntactically my classes correct or not nothing but if you see here, the moment I click through internet, I send the classes database, but before that, there is something a compiler exists nothing but my class has goes to one check. What is the check? I will call that check nothing but past there is something called compiler. In this check, I have something which I call us compiler, nothing but I call it affects compilers.
Okay, we will come to our best competitors. So, as I'm behind in the cloud, always what happened here, though, what things I wrote through internet. I'm just going to talking to the selfish compiler by clicking the Save button is through internet. It came to the compiler. Okay, the moment it's teaching the compiler biologics are based on the predefined functions provided by substance use that class what am I going to save in database? So a mine target two separate items just before to saving database it will take ages class retain a special tax on not ups, then take that class or seven letters.
Okay? See if you if you saw that diagram, I click on it on compile up it's the modified some classes okay? It's not compiled it I click to save I call two compilers okay. The compiler checks okay which decide on nothing application server compiler checks, okay that class follows all the syntax or not, if there is not logical check a says of the syntax to E which there then go and the compiled version of the class, go on store in my metadata. Okay. So now once once a stored here that's fine is But sometimes it may compile some pens.
Let's see for example, this one if this is true what happened then if this is well, the moment I call this compiler useful then I will not go from here then this call not going to happen. So, this will return to the same to me with appropriate error message okay compile is an error. So, I will get what is the error message like if you see currently in this class I got some error messages so, my compiler failure okay. So, the moment I am going to save this dot syntactical check by the epics compiler found okay there is some error so, this syntactically not not correct. So, that message is sent by compiler tours and in the system is shown here. So, if you see I want to dismiss So, now, the next work what I have okay I have to fix this error The moment I fixed it.
Now I can say now my classes being compiled by a compiler all good non class Wayne and Serbian may not obvious so that is nothing but this way if everything good came and saved in my that I was the class okay if you see all the classes what I have let me show you that also everything being so except like your account records being saved in account object same way let me show you the class or the trigger or the object or the any logical right instead of being saved somewhere there is one that is also we have let me say that if you see something to epics class epics page okay here all the classes being saved in the class name William degrees well john everything being saved there okay so now see now you understood Okay, we wrote the appendix if it is compiled or uncompelled Part Two happened okay now my classes really understand.
Right now let's consider this class being invoked from it. Some logical button click Some user clicks a button, then this class being invoked. So when the end user calls What happened? So when a new user called my class, they're not going to compile, already compiled classes there. So when any some end user invokes that by some button click or somewhere something happens, then they will go, they will not check the compiler, the runtime there is something we have called a runtime of the likely effects compositing, there is something we have called optics runtime, that runtime engine will check. So I have so many classes, which class to invoke, okay, so on, let's consider for the click of the button.
Let's see how in the moment, I just click this button like button, same way, I may go on click on the icon button, let's say akoni button. On under this new button. There's a specific logic written. So what is the logic written? Based on that? The runtime will check the call or the request what came from a new job.
What request came coming into integer? What method they want okay based on that it will talk to my database Okay, go on take that away see if I have that up there. Then take that the output send to the integer SQL format. Does anybody see when the indicator appears? It goes to epics runtime, the quality check for the compiled epics get that class and sender as you're doing future in consider flow topics from a developer point of view and from a neutral point of view. Okay, so same way when you go here.
We understood this concept that any question for me or Neela this time I didn't know. What Wendy time is. canvasser. It's based on record label because At a runtime, let's suppose I'm creating one record. So that time only the runtime is checking, is it? Yes.
See, always whenever we're saying two things we have compiled lesson and runtime system. I'm dividing in two ways. One, I'm saying compile time on one, I'm saying runtime. Okay, let me explain. Okay, so can we say runtime is at a record level? runtime incompatible?
No, no kampachi runtime, I will not say the current level. Okay. So that is in there. There is some cases where I'm like the convenience when you're saying like, for instance, I can say account record contact record. It's not that way. So that may not be a record but I may record some logic, okay.
So nothing but when you are exhibiting something in your execution stance, okay. Yes. So in this diagram, nothing The integer initiate some ignition some initial some transaction okay the moment some transaction starts then I call the runtime for example, okay you are building a home you are building one client okay the time you start the building and end of the building nothing but a competition okay. And the moment you came to stay there that is nothing but the runtime of the home, you are running it correct. So that is that is on time, same way, when you're writing, developing monitoring something, all the while compiling the problem compiling the system to feed as tall or expensive. Okay, once you saved it, and somebody coming to us that they invoke that, then we call it as a runtime.
Okay, well, let me give one more example. See, you have a car. Okay. The moment you start the car up and go for emergency running mode, they give some stats, but if you clean the car Repeat something that is similar to compile time, you're making the car to run properly. Okay, so this runtime may initiate from the record level, let's say I want to manipulate some record that time, I'm just going to invoke something logic that may be a runtime. And the same way that runtime may invoke from the oil service from the email service.
Okay, then why not some email, come to my system? I may not get a record, I may send that email by checking Okay, this email address to a specific type then forward that email to some another email address. Okay, it may not talk to my record, but it is just starting up my intuition. Got my point? Yes. Are there any confusion?
The general diagram you mentioned, developer, more developer or end users and basically developers dealing with metadata right. So Yes yes developer dealing with metadata okay find the end user nothing what they're dealing with the company barometer perfect okay. So till now we understood what is epics okay when I need to use epics and we write epics how it happens okay same way okay this is our biggest we'll write it and the Agile working right now you know concept of sandbox concept of production and how the lifecycle of these objects illusion okay whenever you write this up its lifecycle okay. So for whenever it is nothing but you develop one episode, it may be a simple class, maybe integrate trigger, maybe it is a is a integration We support anything, the moment you add it up a slogan. So, in the end, we need to send that piece of logic to the production Okay, for that always you should write the test class for that, develop the class, test it.
And through genset or through different mechanism, using anything, you send that code to person and they produce, this is the main thing. And the moment you deploy, then around time stamps on each execution. And we are going to see how to deploy how to write the test classes and how to write all the ways. So what are the tools we can use to writing these epics? There are many tools. One of couple, there is if you see if you see my previous video, whatever they are for the demo, or there are something called past Salesforce providing one developer console here you can write any app experience or any kind of program you can do here you could go here you go here file new you can create a class trigger all this stuff will do everything.
This is one tool which is what we call Developer Console, which completely poster come ID and also inline you can write from your like like now I have written something class here, but you can go here is a plus plus you can click New, you can write your logic also, okay. And also there are many tools okay. Like you can check leaves you can use any modern control systems, okay. And also, if you want in this ID anywhere you can use all these interconnected, I can just connect to my system here. I can add a class the class will be saved invasives everything in a cloud. There are many tools so all the tools I explain one by one, okay, what are the tools you need to use to write the program Okay.
Any confusion All good Perfect. Okay, so now we are not going to talk more about graphics today. Okay, I just keep as much as left for discussion. Okay. We just got to know what is epics in a single line without any more deep we can say it's a strongly typed programming language which is integrated and data focused to my database integrated to all over my system easily personable and inside the Azure multi tenant architecture okay. And I should use the subjects whenever there is a complex logic to build which is not supported as an out of box functionality.
Okay, and there are many tools available like foster comm ID Cleves, and my third are your developer console. anywhere we can write up astronomy and also right now if you see something you How about in different groups lightning welcome, you can use VS code also to write okay. In vs codes also I can write as programming I can do everything okay that also we can do. So, there are many tools whereby some source we can use and we understood what is the flow of development of optics and how the image processing we should the basic diagram I have copied from Sony to explain you. So, you say something in diagrams and you can understand better under the blown process faults in developing testing and deployment, how to develop customers how to test it by writing some unit test cases, and then how to defer that. Okay.
So, I'll stop this lesson from this with this most discussion today. Okay. And we'll see from the next discussions what we can do. So from the discussion, if you have any questions, or if you have any question out of the discussion, please feel free to