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
billkatbillkat 

Query/list custom fields and props on an object

Hi,

Is there a way to list the custom fields and their properties? I'm think of a std object at the moment, namely Contacts.

Would be handy for us to list all custom fields and their properties.

Or short of that, to pass in a field's name and get it's properties back.

 

We're using PHP, sometimes the toolkit and sometimes direct to the API.

 

describeSObjects() doesn't return custom fields it seems.

 

Cheers.

Ispita_NavatarIspita_Navatar

Have you tried using Metadata API functions, these are aimed at providing all the information about data  and object in a salesforce org.

For more on metadata you can refer to the following link:-

1. Metadata  API documentation

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

billkatbillkat

Thanks, I'll look into it.