force-app/main/default/classes/toBatchOwnerController.cls
@@ -13,7 +13,7 @@ public static InitData TypeId(){ InitData res = new initData(); try { res.RecordTypeId = Schema.SObjectType.task__c.getRecordTypeInfosByDeveloperName().get('OPD').getRecordTypeId(); res.recordTypeId = Schema.SObjectType.task__c.getRecordTypeInfosByDeveloperName().get('OPD').getRecordTypeId(); } catch (Exception e) { throw new AuraHandledException(e.getMessage()); @@ -22,6 +22,6 @@ } public class InitData{ @AuraEnabled public String RecordTypeId; public String recordTypeId; } }