I want to query the Case Record Type Name for the Parent Case of an Email Message. I am trying with the below query but it is not returning me the name :-
select id,subject,parentid,parent.recordtypeid,parent.recordtype.name from emailmessage where id = 'xxx...xxx'
I am able to get the Record Type ID but not the name. In the name column, it is returning me [object Object]. Please advise if there is any way to do this.