I have written below code and its causing me the error:
Invalid bind expression type of RecordType for column of type String
Here is the code for reference
Map<Id, RecordType> caseMap = new Map<Id, RecordType>(
[SELECT Id, DeveloperName
FROM RecordType
WHERE SObjectType ='Case' AND Id='111111']
);
List<RecordType> recordTypes = caseMap.values();
List<Case_Entitlement_Setting__mdt> EntitlementList = [
SELECT Id,Record_Type__c,Category__c,Sub_Category__c,Entitlement_Name__c
FROM Case_Entitlement_Setting__mdt
WHERE Category__c='BBB' AND Sub_Category__c='AAA'
AND Record_Type__c IN :recordTypes
];
The error coming on below line
AND Record_Type__c IN :recordTypes];