function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ifthikar Ahmed 1ifthikar Ahmed 1 

when to use DescribeFieldResult , DescribeSObjectResult ,Schema.SObjectType

i am new and can some explain when to use DescribeFieldResult ,  DescribeSObjectResult ,Schema.SObjectType 
Nubes Elite Technologies Pvt. LtdNubes Elite Technologies Pvt. Ltd
Hi Ifthikar,

DescribeFieldResult - Contains methods for describing sObject fields. ( For further reference you can refer : this (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_fields_describe.htm) )

DescribeSObjectResult - Contains methods for describing sObjects. None of the methods take an argument. ( For further reference you can refer : this (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject_describe.htm) )

Schema.SObjectType - A Schema.sObjectType object is returned from the field describe result using the getReferenceTo method, or from the sObject describe result using the getSObjectType method. ( For further reference you can refer : this (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Schema_SObjectType.htm) )

Thank You,
www.nubeselite.com
Development | Training | Consulting

Please mark this as solution if your problem is solved.