May 2019
Intermediate to advanced
546 pages
12h 41m
English
In the field description, you will find all the information on the field requested:
To retrieve the information of the field, you call the getDescribe method of the field. The following is an example:
Map<String, Schema.SObjectType> mapObjects = Schema.getGlobalDescribe();Map<String, Schema.SObjectField> accountFields = mapObjects.get('account').getDescribe().fields.getMap();Schema.DescribeFieldResult yourField = accountFields.get('Name').getDescribe();System.debug(yourField);
The preceding code returns the following result: ...
Read now
Unlock full access