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
Pieter Calitz 5Pieter Calitz 5 

How can I get a list of field names, sizes types and lengths

Hi,

I am trying to get a list of field names, sizes types and lengths by using the url
https://eu9.salesforce.com/services/data/v37.0/sobjects/Account/describe

but I only get a lot of data like
{"activateable":false,"childRelationships":[{"cascadeDelete":false,"childSObject":"Account","deprecatedAndHidden":false,"field":"ParentId","relationshipName":"ChildAccounts","restrictedDelete":false},

..yet no field list

What am I doing wrong? Please help
Best Answer chosen by Pieter Calitz 5
Aman MalikAman Malik
Hi,

Whatever you did to fetch fields data is correct. You just need to filter out field specific data from your response. Your response must contains the  fields array. Kindly search for
fields:[{...}]
In your API response.

Please mark this answer as best if this helps.

Thanks,
Aman

 

All Answers

Aman MalikAman Malik
Hi,

Whatever you did to fetch fields data is correct. You just need to filter out field specific data from your response. Your response must contains the  fields array. Kindly search for
fields:[{...}]
In your API response.

Please mark this answer as best if this helps.

Thanks,
Aman

 
This was selected as the best answer
Pieter Calitz 5Pieter Calitz 5
Thanks! Because of all the rest I failed to look for "fields".