I have a collection of records from different entities. I want to find the field name which contains the unique identifier for the particular record belonging to any entity.
Is there an API that can accept something like record type and return which is the unique identifier for that entity type?
Basically, I have to perform some kind of action based on unique identifier field of the entity?