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
dlucia21dlucia21 

How do I get a list of fields using the AJAX Toolkit ver. 8.0?

I know before in the beta version, I could use something like this
 
sforceClient.DescribeSObject(objType).fieldList
 
Is there another call that brings in the list of fields?
 
Any help is greatly appreciated.
 
Thanks. 
dapkusdapkus
after you include the script tag that loads the new toolkit, the describe call looks like this:

var metadata = sforce.connection.describeSObject(objType);

you can get the field list like this:

metadata.fields

-Pete
dlucia21dlucia21
Thank you!