Can we assign particular record types to profiles using Apex? My scenario is , if we select profile and record type, then that record type is automatically assigned to that particular profile using apex.
I am getting profile and record type ID using the following SOQL queries,
[SELECT id,name,SObjectType from RecordType] [SELECT Id,name FROM Profile]
but i can't update profile with record type.