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
PandeiswariPandeiswari 

Query fields with data type

How to get all fields with datatype in Object. I would like to get all fields with data type in contact object
sandeep sankhlasandeep sankhla
Hi pandeiswari,

You can use describe call for this...

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.

Thanks,
Sandeep
Salesforce Certified Developer 
PandeiswariPandeiswari
Hi Sandeep,

Can you please provide sample code
sandeep sankhlasandeep sankhla
Hi

Please refer below link for more details and also read about describe call and their methods..by using describe call you can get all information

https://developer.salesforce.com/forums/ForumsMain?id=906F000000090fnIAA

Check the above link and let me know if that solves your issue..

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.

Thanks,
Sandeep
Salesforce Certified Developer