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
NNRNNR 

Regarding Recordtypes Urgent.........

Hi All,
  public void savemethod(){
  acc.name='cname';
  acc.annualrevenue='2123';
  acc.RecordtypeId='001K0000012C7C2';// here id is account1 record type id
  insert acc;
}
above method succussful inserting Record but when i click details of Record it is inserting another Recordtype is name 'account2'
account2 recordtype is defualt record type for profile...
How to solve it please any one can tell me...!

Thanks
NNR
 
gokul bharatigokul bharati
HI NNR,

Have you assign the account1 record type to the Profile.

Thanks,
Gokul