Shouldn't I be able to get the Record Type name with RecordType.Name ? In the following code I am able to get the ID by using RecordType.ID - but I get a null value in the string if I use RecordType.Name :
trigger AutoCreateSubOnAccount on Account (after insert, after update) {
public string type{get;set;}
List <SubsidiariesAndBrands__c> subToInsert = new List <SubsidiariesAndBrands__c> ();
for (Account o : Trigger.new) {
type = o.RecordTypeId;
Thank you very much.