| | |
| | | Case ca = [ |
| | | select |
| | | Department__c, |
| | | Account__c |
| | | Account__c, |
| | | CICName__c |
| | | from Case where Id =: recordId |
| | | ]; |
| | | res.department = ca.Department__c; |
| | | res.accountId = ca.Account__c; |
| | | res.recordTypeId = Schema.SObjectType.Case.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_VOC).getRecordTypeId(); |
| | | res.caseNumber = ca.CICName__c; |
| | | res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_VOC).getRecordTypeId(); |
| | | // res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().toString(); |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | |
| | | public String accountId; |
| | | @AuraEnabled |
| | | public String recordTypeId; |
| | | @AuraEnabled |
| | | public String caseNumber; |
| | | } |
| | | } |