What is Salesforce Development and why do we need it?

Salesforce Development Using Apex What is Salesforce Development and why do we need it?
18 minutes
Share the link to this page
Copied
  Completed

Transcript

Now fast as we understand what is Salesforce, and now next time coming into Salesforce for deployment, what I need to do, okay and why do I need to come to deployment? Okay, so today's session we are going to discuss all these topics, okay? And I'm just making a note of each one here. So first thing, why do I need to sell so development? Okay, first thing we'll discuss why do we need cell cell development and even new cells for development? What are the things I can use to do it?

What tools are used what tools are part of the approach we can use for this? Okay. Now financing Why do I need to development you know the art means okay create the object, automate the process by using workflow process builder or flow, everything is there. Even you can build some formula here inheritance on those 14, we came to this development as well. So there are many stops. Okay, who is it is not in our books, nationality, and I want to customize something Which is not provided by Salesforce, then I will come from development like whenever somebody say write a validation rule, okay?

If it is not easy for one, like equal to okay write a validation rule or an opportunity object okay in that opportunity check for the associated account total how many products we have in that product, it has specific category these and that category not shared with any other any other customers then saw some illnesses, okay, if you do in that toy, then we cannot write a simple validation rule, then we need to have some specific logic for that, okay, we need to write our own logic. So in that time, we will come to write some kind of logic or some kind of code in my selfless environment or all then the same thing but I will come to write some program. So, when I'm single right from programs and how well read, you don't think I'm writing a program then What luck So fourth thing you need to use.

So then Salesforce comes with one language, which we'll call up, it's nothing but you have heard about Java dotnet, PHP, CS, our C, many languages. So like that, there is some language salesforce.com provided to us nothing what we call options, which usually we call this the past cloud programming language. Okay. So this is a past cloud programming language provided by salesforce.com. Okay, as to write some logic in multi tenant service. Okay, so I'm not writing any class to store in my local system.

Like, if you see in Java, you can write a class in Notepad notepad plus plus or Eclipse and store it in your system. You can do that that way. But this is everything I'm doing in the cloud. Okay. So that so that kind of things we're going to discuss. So past.

Now we understood okay to do any deployment, I need to write something usually A pixel always okay. So what is that affects okay. So past sprint we are discussing quality that is okay we will understand okay something affects who they are we will write something and we'll do it because of some customization we need like the example I gave or validation rule so then in that way many scenario we'll call the regions where we need to write the epics okay. So all the points are going to cover the past let's see what happens when somebody asks you what is epics is nothing but we understood okay something is a programming language what advice is for that but these effects is nothing but I said it's a past cloud programming language okay. So like c e PE, I say sips are all Java or any language all or nothing but one programming language object oriented programming concepts for it.

So I will explain why I call epics and loops and what are the cases We'll have whoops okay and in the ropes what are the special features we have in Salesforce epics, okay. So, when I say epics, we call it is a programming language but it is a strongly typed programming language strongly typed programming language. Okay. So nothing but an strongly typed oops programming language. Okay. So Arctic's follow all the specificities provided by oops concept.

Nothing but when you call it, it's nothing but follows polymorphism inheritance abstraction okay. An object class everything, okay. So initial level language for this reason we call it as the German language. Okay, so now I think the German language is provided by Salesforce, which is a huge language and it is a strongly typed language and when I say strongly typed Does it mean? Because I'll give you one small example. Okay?

So I think we'll see if I write string that is one equal to five. So as I mentioned string I am writing like this election, however it is 40 these everything I'll explain future classes for when I go to class variable that day. I left them just to explain parties, epics, I'm just giving these lines. If you don't understand what is string as an equal pipe, no refer this. We have to sell some project. Okay.

It's a second session I'll explain what is class what is variable, what is data type that has been this line also. Okay, but what this is one variable of type string, where I'm storing a value five, same way, if a string is to nothing but I can say it is. Okay. In the context of financing, if I do, let's see, I will do string Yes, three equal to Yes, one clauses to when I'm saying that Okay, so what happens here is one has to if you do, this is both string. So if I say Python 10 I'm making it will add there are so many programming language is a depend string. But here if I have a integer type of Hello, it will by default do summation, but here it will not do or do lemon.

So, here it will concatenate to string. So, string means in whatever way you represent, it is a string strongly typed. I have defined the type of string, whatever the way you define the value here, it is just a treasure, it's just a string. So, pi plus 10 when I do it will not saw me it will concatenate it, okay, just to string adding in one string. Okay, so this kind of features, we supported apples. So apples is a completely strongly typed programming language, okay.

And there are many features who have nothing more Integrated I'll explain why I'm saying integrated it's easy to use data close to its budget control is so easy and it works in modular and I usually say if anytime you see like for any application right now, if you work in Salesforce admin to maintain the data you create objects okay? Are you if you go to any other programming language for that object, let me make a small diagram here which would give a little bit more clarity towards that it open okay. So, whenever I am saying that I have their own one database, you may think itself or database or any other language. Okay, so database that I know Parcelforce who use exactly Oracle database on the backend, okay, same way you consider it Siddha has database for any programming language. If my logical layer or my application layer is here is my database.

So, from my application or from my business logic layer, I need to connect to database always okay I need to get a response from database nothing but I want to get a list of accounts from account object okay where account falls in the thing of hot if I go that way, so I need to send some requests to database to get it okay. So, my database is here if you go to any other programming language what we do here, we always write one piece of code to open the connection to database okay. And once my activity over then we write some piece of code to close the connection and in between that you for from the operations what you want from that is what in Salesforce Salesforce is integrated and data focused language, epics is integrated and that of course language nothing but who jumps in here I have mentioned here also interest integrated and data focused.

That means the focus Let me language what I'm using. Okay? So I don't need to have a open connection close connection because the database and my business layer, it is integrated to each other. One example, another example See, if you see, I wrote some line of code here. Okay, in my, let's consider I wrote one class, okay? or something, I wrote some line of code.

And here, as you notice, this is some source admin. So I'm saying, so here, I used one fee from account object, let's consider account number, the T like the effort in this logon, okay, or maybe some custom account number field. So right now, this custom account number field, I have in database, but in my account table, so in future I fill that field. I don't want no I just want to delete the field from my object. When I want to delete the field, the database and my business layer is integrated. That means, the moment I delete this field, it will check internally Salesforce will check internally or do I have any reference of this field in any class, any object sorry, any trigger any class or any formula fields, or any validation rules, if it is there, it will not allow you to delete it, because completely are things interjected to my database.

Okay. And always, the objects are well meaning data focused means I can get the data from this object, just simply writing one query statement. For other programming language, I don't need to write your stored procedures if you know any database language. We need a very library big lines of code, which you call store procedure functions. We don't want that just one line of query you can hire which can talk to us internally and can give me the result So we call attics nothing but it's a integrated data purpose language. Okay, so now the versioning though, like I'm saying, what are the benefits we have interface instead of versioning?

Okay, so I wrote one specific class right now. Okay. Now Salesforce was in maybe summer 16 release when I was in summer 16 that time I have no language. Well, one class, so that was watching some weather in summers Houston. Okay, so now in three years, now Salesforce going into winter 19 Okay, and winter 19 there are so many features comes to us, okay. And that moment, I just want to upgrade my that class to winter 19.

Okay, so I want to change the version of that old classroom. Okay, or if I have some class, who is right now I'm trying it right now in general. Writing, they need to associate to directly into ninth inversion the same way the thing is done. Let me show you how we do versioning here. Let's see I have one particular pentacle here I'll explain all this way up here to get what okay just to explain you the advantages of the epics programming, I'm going to see if I go to this class. So, if you want to change the percent of this class from anyone, like you can navigate to old version you can come to new version to support specific features in what you do you see all the others right now, my class comes in version 41 I want to change it the simply edit it okay.

I can go forward or backward to any version go to this version setting, you can change part of the version I have all the information I can if I want this, I can run it in particular version. So all the features what I have in particular version will be inbuilt support to this class. So the versioning of these features SSE is quite easy because we are writing the program in the cloud as being the first cloud programming language provided by Central's. Okay. So the now let me know if you have any confusion, any question for me. Perfect.

Okay. So same way I said malignant we know Salesforce nothing but a modern work is a modular architecture. So if a patient can say, let me go to this diagram once again, nothing but so we have completely one server. Let me draw it here. I think you'll dispense normally. Yeah.

So as you get older data focusing on just one query. So as you mentioned, Via just deleting the metadata. So checking the details in database right. So, does it require any master detail or some kind of relation required or any kind of prediction? error? irritable No, no.

Everyday so let me show you that so use that example okay. So let's get right into it. Let's quickly okay. So notice here, so let me go one class within here, okay, I learned how to write class but to solve that you can go here just I'm writing a class complete. Okay, I just wrote something here. Nicholas, just I wrote one small class here.

Yes, plus for training. Okay. Forgive the name that the how to write the class, the syntax, everything and say, Okay. Let I just wrote a method here. My method. Okay.

So now, let's consider, I'm just writing one account. issue should equal to, let's see, I wrote something one query Don't worry about lines of code I'm writing. Okay, let's I'm just taking a specific field from the account right now. Or I can go to this account object right now. I just took this account field, I'm going to take a specific field, national field, I'm just going to take a custom field which colorzilla Okay, when I go to it not let me take it picklist numbers, it says serial number. So now, let's ID and SOC alumalite.

Okay. So my count limit one. So now if you see I have used that field for revenue. So, line one one is this is a divestiture Okay, I just wrote on this class and see there is a field which is called a serial number. Okay. So now, if I go to this account field, the moment I try to delete this field, okay, I just click the Delete is I want to delete this.

Okay, so what happened here does Salesforce will check this field each used in some programming language. So see my class I have written and the field field nothing but it's in database object. So now the moment I'm deleting the it is in as it is interpreted completely the opposite clause and in my database, everything included Classes integrated in such a way that so if any field is being removed or being deleted, internally it will check, oh, I am using that in my class, then how we can delete it, we cannot delete it. It's showing the message the custom field, they are first referenced elsewhere in the system. Okay, so this kind of integration of artists in the complete server we have, but the point Yes, perfect. Okay, that we're going to, say the integrated system.

So when I say data brokers see to get the data from this account object. I don't want to write any data connectivity language. I don't want to write any connection open connection close. Okay, so simply, I just wrote this line of code. I'll explain what it is something we call a SoCal, which we'll cover in the next topics. Okay.

I wrote this line of code, and this will give me complete information about that. Okay, I can directly talk to database My programming language 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

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.