| | |
| | | RepairContactData result = new RepairContactData(); |
| | | try { |
| | | Account report = [select Department_Class_Label__c from Account where Id = :recordId]; |
| | | result.DepartmentClassLabel = report.Department_Class_Label__c; |
| | | result.departmentClassLabel = report.Department_Class_Label__c; |
| | | result.typeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('AgencyContact').getRecordTypeId(); |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | |
| | | @AuraEnabled |
| | | public string typeId; |
| | | @AuraEnabled |
| | | public string DepartmentClassLabel; |
| | | public string departmentClassLabel; |
| | | } |
| | | } |