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
Sandeep TechAffinitySandeep TechAffinity 

How to find sObject Columns field API names for the ListView creating using Metadata API?

Hi Guys,

I am trying to create ListViews using Metadata API, according to this Link
https://developer.salesforce.com/docs/atlas.en-us.232.0.api_meta.meta/api_meta/meta_listview.htm

Field names in the ListView columns don’t always match their API name counterparts. If person accounts are enabled in your organization, standard fields merged from a contact into an account start with the PC_ prefix, while the corresponding API name starts with the Person prefix. For example, the ListView column name is PC_Email for a corresponding API field name of PersonEmail.

API names are not forking for example the Contact name API name is "FirstName" but in metadata, it takes like "FULL_NAME" (I just took randomly it is not working for other fileds)
Can anyone help me how to find out the field API NAme?
VinayVinay (Salesforce Developers) 
Hi Sandeep,

You can check by login workbench for API name of fields.

https://www.simplysfdc.com/2017/05/salesforce-list-view-sharedto.html

Please mark as Best Answer if above information was helpful.

Thanks,