+ 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,
Development | Training | Consulting

Please mark this as solution if your problem is solved.