You need to sign in to do that
Don't have an account?

Get the record type of Case
Hi all,
I need to check the record type we selected when we create the case. As an example please check below screenshot.
i need to capture which record type user has created (i need to capture that in Triger.Insert

Thanks alot
I need to check the record type we selected when we create the case. As an example please check below screenshot.
i need to capture which record type user has created (i need to capture that in Triger.Insert
Thanks alot
Please find the below sample code,
Thanks,
Vinoth
All Answers
Please find the below sample code,
Thanks,
Vinoth
Please try the below code :
Let me know if you need more help on this.
Thanks,
Abhishek
I used following code with the help of your code snippts. i can only mark ones answer as the best answer. So i considered Vinoth answer.
I'm very sorry Abishek, you are soo awesome.. Thanks a lot for your kind answer. !
Map<ID, RecordType> recordTypeMap = New Map<ID, RecordType>([Select ID, Name From RecordType Where sObjectType = 'Case']);
if(recordTypeMap.get(caseO.recordTypeID).name.containsIgnoreCase('My record type')){
}