| | |
| | | public static InitData init(String recordId){ |
| | | InitData res = new initData(); |
| | | try{ |
| | | Inspection_Report__c report = [SELECT Id,RecordTypeId FROM Inspection_Report__c WHERE Id =: recordId LIMIT 1]; |
| | | Inspection_Report__c report = [SELECT Id,RecordTypeId,RecordType.DeveloperName FROM Inspection_Report__c WHERE Id =: recordId LIMIT 1]; |
| | | System.debug(LoggingLevel.INFO, '*** opp: ' + report); |
| | | res.Id = report.Id; |
| | | res.RecordTypeId = report.RecordTypeId; |
| | | res.RecordType = report.RecordType.DeveloperName; |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** res: ' + res); |
| | | }catch(Exception e){ |
| | |
| | | public String Id; |
| | | @AuraEnabled |
| | | public String RecordTypeId; |
| | | @AuraEnabled |
| | | public String RecordType; |
| | | } |
| | | } |