Why do we need to develop in Salesforce and what is apex

Salesforce Development Using Apex What is Salesforce Development and why do we need it?
24 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€48.10
List Price:  €67.35
You save:  €19.24
£39.88
List Price:  £55.83
You save:  £15.95
CA$71.97
List Price:  CA$100.76
You save:  CA$28.79
A$80.16
List Price:  A$112.23
You save:  A$32.07
S$67.96
List Price:  S$95.14
You save:  S$27.18
HK$388.27
List Price:  HK$543.62
You save:  HK$155.34
CHF 45.02
List Price:  CHF 63.04
You save:  CHF 18.01
NOK kr569.59
List Price:  NOK kr797.48
You save:  NOK kr227.88
DKK kr358.90
List Price:  DKK kr502.49
You save:  DKK kr143.58
NZ$88.63
List Price:  NZ$124.10
You save:  NZ$35.46
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳5,972.19
List Price:  ৳8,361.55
You save:  ৳2,389.35
₹4,258.89
List Price:  ₹5,962.79
You save:  ₹1,703.89
RM224.30
List Price:  RM314.04
You save:  RM89.74
₦77,378.02
List Price:  ₦108,335.42
You save:  ₦30,957.40
₨13,924.71
List Price:  ₨19,495.71
You save:  ₨5,570.99
฿1,707.62
List Price:  ฿2,390.81
You save:  ฿683.18
₺1,762.36
List Price:  ₺2,467.44
You save:  ₺705.08
B$310.08
List Price:  B$434.14
You save:  B$124.06
R926.14
List Price:  R1,296.68
You save:  R370.53
Лв94.05
List Price:  Лв131.68
You save:  Лв37.62
₩72,995.06
List Price:  ₩102,198.93
You save:  ₩29,203.86
₪183.24
List Price:  ₪256.56
You save:  ₪73.31
₱2,921.84
List Price:  ₱4,090.81
You save:  ₱1,168.96
¥7,853.11
List Price:  ¥10,994.99
You save:  ¥3,141.87
MX$1,006.35
List Price:  MX$1,408.98
You save:  MX$402.62
QR182.19
List Price:  QR255.09
You save:  QR72.89
P691.26
List Price:  P967.82
You save:  P276.56
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,544.49
List Price:  E£3,562.49
You save:  E£1,018
ብር6,361.91
List Price:  ብር8,907.19
You save:  ብር2,545.27
Kz45,590.88
List Price:  Kz63,830.88
You save:  Kz18,240
CLP$49,514.09
List Price:  CLP$69,323.69
You save:  CLP$19,809.60
CN¥364.84
List Price:  CN¥510.80
You save:  CN¥145.96
RD$3,032.23
List Price:  RD$4,245.36
You save:  RD$1,213.13
DA6,760.37
List Price:  DA9,465.07
You save:  DA2,704.69
FJ$115.98
List Price:  FJ$162.39
You save:  FJ$46.40
Q385.05
List Price:  Q539.11
You save:  Q154.05
GY$10,455.66
List Price:  GY$14,638.77
You save:  GY$4,183.10
ISK kr6,980.10
List Price:  ISK kr9,772.70
You save:  ISK kr2,792.60
DH502.81
List Price:  DH703.98
You save:  DH201.16
L922.32
List Price:  L1,291.33
You save:  L369
ден2,959.81
List Price:  ден4,143.97
You save:  ден1,184.16
MOP$399.96
List Price:  MOP$559.97
You save:  MOP$160.01
N$920.98
List Price:  N$1,289.45
You save:  N$368.46
C$1,839.04
List Price:  C$2,574.80
You save:  C$735.76
रु6,810.12
List Price:  रु9,534.71
You save:  रु2,724.59
S/186.41
List Price:  S/260.99
You save:  S/74.57
K202.74
List Price:  K283.85
You save:  K81.11
SAR187.78
List Price:  SAR262.91
You save:  SAR75.12
ZK1,383.10
List Price:  ZK1,936.45
You save:  ZK553.35
L239.36
List Price:  L335.12
You save:  L95.76
Kč1,209.95
List Price:  Kč1,694.03
You save:  Kč484.08
Ft19,835.61
List Price:  Ft27,771.44
You save:  Ft7,935.83
SEK kr553.09
List Price:  SEK kr774.38
You save:  SEK kr221.28
ARS$51,277.48
List Price:  ARS$71,792.58
You save:  ARS$20,515.09
Bs346.08
List Price:  Bs484.55
You save:  Bs138.46
COP$219,391.32
List Price:  COP$307,165.41
You save:  COP$87,774.08
₡25,377.51
List Price:  ₡35,530.54
You save:  ₡10,153.03
L1,269.45
List Price:  L1,777.33
You save:  L507.88
₲390,156.27
List Price:  ₲546,250
You save:  ₲156,093.73
$U2,225.52
List Price:  $U3,115.91
You save:  $U890.38
zł205.57
List Price:  zł287.82
You save:  zł82.24
Already have an account? Log In

Transcript

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

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.