I want to extract metadata of custom fields such as label, api name, data type along with the createddate,createdby values of the fields for all objects of my project into an excel sheet. Also if the custom field is of picklist or formula type I want to get the associated picklist values and the formula. Is there any entity which can be queried to get these details.
I tried using FieldDefinition object but i am only able to get the label, apiname and data type of fields.
SELECT Label, DataType, QualifiedApiName FROM FieldDefinition where EntityDefinition.developername = 'Account'
I came across CustomField object which seems to give the createdate and createdby values but for some reason i am unable to locate this object in devconsole resources to see what more details i can get from this entity. Is there a way to apply filter to this entity and extract the remaining information and may be merge the two excels (one from fieldDefinition object and other from CustomField) if needed. Otherwise, what would be the best approach to fulfil my requirement.