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
RamyaKrishnaRamyaKrishna 

Reg: Getting field types using Field names

Hi,

How can i get the field types based on field names?

Support if the field name is City__c and type is Text(20).

Based on field name only i need to get the field type.

How is it possible.

 

 

Please help me.

 

 

Regards:

Ramya

Best Answer chosen by Admin (Salesforce Developers) 
NBlasgenNBlasgen

I just replied to you in another thread.  Use DescribeSObjects()