Now that we are done creating custom objects it's time for us to explore creating new custom fields
with different field types so lots of field you see is basically a place holder for storing business
information as simple as that.
Every object has got numerous fees associated with them for storing the various business information
that the customer wants to storing in the C atom system.
Since full size guard there are basically two different types of fields.
One are the standard fields.
The other is the custom fields STANDARD FIELDS As the name says it standard.
It is available in Salesforce by default.
However the custom fields are the ones that are custom created by us.
So when you talk about these objects and fields basically in the database and the backend objects are
represented in the form of tables that has fields are represented as columns of the table.
Now that we have created other objects it means basically we have created the table structure and now
that it's time for us to jump in and create those table columns.
It means those fields so let's take a quick look at our data.
MARTIN So here is a data model and as part of a plan we have created the objects and now let's jump
into creating fields.
First is the course's object.
So picking any field for that matter let me pick the as object and let me pick this particular field
that the school scored and ask for the data model.
The field type that is a data type of text.
So let's create a course called Field with the text data type.
So open the Sandoval's application and now let's create our first custom field for the object closest
go to the closest object click on View feels.
This will basically take us to the object definition page of this custom object course.
And here as we can see there are assets no custom fields created here.
The new button if you open up the page for creating the field and the first attribute that we see here
is the field type every custom field has got in fact standard field also has got many AG tributes associated
with them.
Among those attributes the most important one is the feel type or we can call it this data type.
So what does it feel like.
Feel it was basically that designed the type of data that particular field stores.
And as you can see here there are many different field types there that are available and sales force
although no formal at all up somebody's relationship feels and these other field types these three fields
are basically grouped together because these are system generated fields lookup relationship master
detail external look up these are relationship fields.
And the other other regular field types we've already created objects created fields with the field
types in our basic admin admin calls itself but now that like we are in that one segment goes it's very
essential for us to understand the various attributes.
Every field offers and the importance of those attributes and varied place and why to place all those
my new details it is very important for us to understand so well here let me choose the next data type
because that does a lot.
We have designed our data model so choose X and as you can see here fixed that are no different variations
in that text X ADR text data along the rich encrypted you know look like everything contains a datum.
These are the different variations of the text to data type so then we choose a text.
It allows the entering any combination of letters and numbers and text area up to 255 characters and
on separate lines text will be on a single line and there's a separate line.
So that is to be noted and he attacks every alarm.
He tests does limitation 1 3 1 0 7 2 characters on separate lines and text area rich text area average
as the name says it allows adding images links and other formatted text and then we say encrypted again
as the name says this is incomplete text meaning the data that we entered in this particular field is
usually shown in the encrypted form.
Best example would be storing the Social Security number of a person that the data is stored in encrypted
form.
Because of the importance of that data.
So these are the different options that are available to us when we stored data in the text format.
So we have to explore the different options and what it has to offer.
Now that we just choose the plain text hit next now that we have chosen our data type.
The step would be to enter the details so fill in all the details when you are done filling in all the
details.
We should also give more importance to the other options that are generally available.
One is required what does required required meaning this field is always required meaning in order for
us to save a record of value in this field is mandatory.
So that is why does required option is available unique unique meaning that to allow or not allow duplicate
values and extend a lady.
So whenever we set a field as a unique identifier from an extended system then they use this externally.
So here are a required unique external lady.
These are the options that are available.
In fact we have to make note of these options are not available.
These are also sometimes encountered in the exams.
The certification exams like what all the various options available to us when we create the field so
pay attention to all these values and for our scenario for goals scored.
I would say that it is required because schools court is always required for an equal is act as created
and unique.
Definitely two classes cannot share the same goal score.
So let me say as unique and it does not add a card identifier from an ex into the system so let me not
mock this and the last option that is available to us is the default value so default values basically
used if anybody we want to populate some default value based on some different parameters so use this
show formula everyday and then select the particular feel type organization profile and everything has
got a certain fields associated to that and you have these operators also.
In fact these are pretty standard operators that are available to us whenever we create formulas and
using operators.
These are also like you know we are already familiar with but just like we got to know that it is available
while creating a field and also try using these a formula editors and see how it behaves when you create
a field.
So that's what I'm again repeatedly stressing is that in our advanced admin course we are sometimes
it'll be pretty much along the same concept but in more detail.
So the default value is also one such detail that we may not have had more attention while creating
this basic admin course but now that we are doing this add one segment it's time for us to understand
these concepts more in detail so next hits next it is the field level security is done.
So we are clear we are done creating our first custom field that is of course code for the custom object
course.
The process is pretty much simple and straightforward.
However we have to pay more attention to the attributes that our field has to offer the various different
attributes that is that ease and then when we cleared out our data model we made sure that every single
field type that is offered by Salesforce is mapped to at least one off the field among these entities.
So then we consider text.
We have text text area text data along a rich encrypted.
So try creating all these fields in the application and see how how we behave and how they differ from
each other.
That way we can really enhance our learning experience.