Skip to content

Commit

Permalink
Create a separate branch and revert the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdovh committed Aug 22, 2023
1 parent 54bbaf0 commit db53518
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SimpleDataTable/baseSetup/classes/SchemaProvider.cls
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public class SchemaProvider {
* @return Map<String, Id> : record type names to record type ids map
*/
public static Map<String, Id> getRecordTypeIds(String objName, List<String> rTypeNames){
Map<String,Schema.RecordTypeInfo> rtMapByName =
getDescribe(objName).getDescribe().getRecordTypeInfosByDeveloperName();
Map<String,Schema.RecordTypeInfo> rtMapByName = getDescribe(objName).getDescribe().getRecordTypeInfosByName();
Map<String, Id> mapToReturn = new Map<String, Id>();
for ( String recordTypeName : rTypeNames ) {
mapToReturn.put( recordTypeName, rtMapByName.get(recordTypeName).getRecordTypeId() );
Expand Down

0 comments on commit db53518

Please sign in to comment.