diff --git a/flow_action_components/GetRecordTypeInfobyObject/force-app/main/default/classes/GetRecordTypeInfobyObject.cls b/flow_action_components/GetRecordTypeInfobyObject/force-app/main/default/classes/GetRecordTypeInfobyObject.cls index a2f2f3610..41e7fc17a 100644 --- a/flow_action_components/GetRecordTypeInfobyObject/force-app/main/default/classes/GetRecordTypeInfobyObject.cls +++ b/flow_action_components/GetRecordTypeInfobyObject/force-app/main/default/classes/GetRecordTypeInfobyObject.cls @@ -23,7 +23,7 @@ global with sharing class GetRecordTypeInfobyObject { // Send the email you have created. try { - Map recTypeInfoMap = Schema.getGlobalDescribe().get(objectName).getDescribe().getRecordTypeInfosByName(); + Map recTypeInfoMap = Schema.getGlobalDescribe().get(objectName).getDescribe().getRecordTypeInfosByDeveloperName(); List recTypeInfoList = recTypeInfoMap.values(); //extract the names and recordIds and return them as List