+ Start a Discussion
DharmendraDharmendra 

Retrieve list of fields belong to record type using api.

Hi,

I want to retrieve list of fields belong to record type.
Is there any way to retrieve this information using any Salesforce api.
Please suggest.
Sumit Jain CelebalSumit Jain Celebal
There is an object RecordType and you can use it for retrieving the fields of record type.

See the following link:
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_recordtype.htm

Regards
Sumit 
sumit@celebal.com
DharmendraDharmendra
@Sumit: Thanks for reply.
I think my question is not correctly defined.
I wanted to know the relationship between Standard object fields and their record types.
For example:
Field: Account -> AccountName
RecordType: Account -> BusinessAccount

Is there any way to get this relationship via api.
Sumit Jain CelebalSumit Jain Celebal
The record type object contains the data about the record type along with the name of the object.

The field "SobjectType" tells you the name of the object like Account, Contact, Cases, etc and the field "Name" tells you the name of the record type.

So you can get the desired information from the record type object.

Hope this helps.

Regards
Sumit
sumit@celebal.com
DharmendraDharmendra
@Sumit: Yes, it is correct.
But I want to see the direct relationship between record types and fields.
For example:
I've a field named AccountName in Account table and Record types as BussinessAccount and PersonAccount.
This field is read only for PersonAccount but in BusinessAccount it is createable and updateable.
How can I get these details from record type and field relationship.
Please suggest.
Tina Jordan 28Tina Jordan 28
I am doing an analysis on a very large org and am wondering if there is a way to get a list/grid of which fields are used for each individual record type? List of where each field is used (on list views or page layouts, in reports, process builders, workflows, profiles....)?
Trivikrama Rao Padakandla 17Trivikrama Rao Padakandla 17
I am looking for something similar. Did you find a way to do that?
Max DE PONFILLY 7Max DE PONFILLY 7

Hello, I'm still looking for that information also.

Basicaly I want to know on a specific object, which fields are related to which recordType. Did anyone manage to do that ?
Thanks