First of all let's define a map of training and of subject OK.
And then we will invoke the schema that got global describe on this map we'll get them out of all our
dogs as objects and their corresponding tokens to do that because they found them at first
and we would assign the scheme that got global distributed to this map
and this would have done to me what a map of all y s objects and their corresponding tokens.
So let's add this to the debug log and let's see the result.
So this has them up as you can see.
Let's see that count.
This is that object.
And there's a corresponding talking.
We can also add this to a set and then to a list and then we can sort the list and then we can add this
to a dropdown list and I was saying.
So let's say if you want to use a B.F. page Bridgwater or page and then if you want to add a dropdown
list that shows all of the all x objects you can use that.
Let's do that.
That's great.
And then this And then we were told this list
first of all we will use the keyset method on the map to get a set of all the keys and then we will
add a list that will take the SAT as an agreement
and now let's sort this list.
So I will use the name of the list and with the sort method.
Now let's add this to the debug log.
And now we have the list of all our orders as objects and they are sorted alphabetically from A to Z.
We can use this in any sort of force ph.
Now let's obtain the object described result from the account OK so we'll use that count Okan.
And then we will use that method.
Get this guy on this talken to get the details.
And with a information of that count as object.
So the type of a describe result is what it is Kema described as object result.
To find this
and then I will use this map to get that all can of that count as object.
So I will copy the name of them up and then I will use the get method
and then I will up and this would describe meathook.
So what would happen now is scheme I'm up at that account will return to me the token all got count
as object.
And then I will append this with the Get described method and the return would be what it will be that
object.
Describe result which is in this case SCDP.
Let me add this to the debug blog.
And I went on this
I will fix this and I will execute again
there you go.
So now you have a list of all the objects and then you have the details of that count as objects.
So as you can see here we have different details that we can use in our code.
Let's say you have the table and you have the plural name you have the API name everything the city.
And then we can explore this map to get the results you want.
We can get different values depending on the keys.
Now let's talk about fefe tokens the return result of a token is what it is.
Kema that object field
let me go with the name field on that count as object.
So I would call this name and I will use directly account that the and then I will define a field described
as part of this field.
So this would be what it will be schema that descrive fields as I did.
So let's call this name.
Here is and I will do as I get described methods here.
On the token itself
to get the details of this field and let me add this to the system the debug.
So let's try this code
there.
So now we have the details of the name field on the account object so you can see the name the controller
the default value.
So.
So that's as for sector.
We have learned how we can get as object and feed metadata information with an apex what tokens and
how they can be used to get detailed information which they describe.
And finally we have learned that different methods that we can use to get these.
And finally you as usual.
Thanks for watching.