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
dandantedandante 

API and web interface show different standard Lead fields

Hello, if I log in to my salesforce developer account and click on Setup/Customize/Leads/Add a custom field to leads, it shows me the existing standard and custom fields for the Lead object. In particular it shows a Name field but no FirstName or LastName fields.

However, if I write code to call describeSObjects on the Lead object, and iterate through the fields, there is no Name field. However,  there are LastName and FirstName fields.

Similarly, the API documentation documents the FirstName and LastName fields but not the Name field.

Why does the web interface show different fields than describeSObjects? And, are there any other places where the two lists of fields differ?

Thanks

gokubigokubi
I'm pretty sure addresses are handled this way, that is the underlying fields are not necessarily displayed in the web UI. They've built their app on top of the API, too, so they've made some choices about how to represent the schema.

These kinds of differences are all over the place in the app.

Steve