From e9cd07ed349234a37d0a79d30806f616e48ecbd4 Mon Sep 17 00:00:00 2001 From: tzinm Date: Mon, 27 Oct 2025 22:54:23 +0100 Subject: [PATCH 1/2] refactor(apex): use getRecordTypeInfosByDeveloperName() instead of getRecordTypeInfosByName in GetRecordtypeInfobyObjects --- .../main/default/classes/GetRecordTypeInfobyObject.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..a5b4c99be 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().getRecordTypegetRecordTypeInfosByDeveloperName(); List recTypeInfoList = recTypeInfoMap.values(); //extract the names and recordIds and return them as List From 7ccab73dbc37818d9fee5493f3ddeaafe2189af8 Mon Sep 17 00:00:00 2001 From: tzinm Date: Mon, 27 Oct 2025 23:17:34 +0100 Subject: [PATCH 2/2] refactor(apex): use getRecordTypeInfosByDeveloperName() instead of getRecordTypeInfosByName in GetRecordtypeInfobyObjects --- .../main/default/classes/GetRecordTypeInfobyObject.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a5b4c99be..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().getRecordTypegetRecordTypeInfosByDeveloperName(); + Map recTypeInfoMap = Schema.getGlobalDescribe().get(objectName).getDescribe().getRecordTypeInfosByDeveloperName(); List recTypeInfoList = recTypeInfoMap.values(); //extract the names and recordIds and return them as List