| | |
| | | try { |
| | | Account report = [SELECT Id,Is_Active__c FROM Account WHERE Id = :recordId]; |
| | | User userinfo = [SELECT id,ProfileId,Job_Category__c FROM User WHERE Id = :myUserID LIMIT 1]; |
| | | res.IsActive = report.Is_Active__c; |
| | | res.ProfileId = userinfo.ProfileId; |
| | | res.JobCategory = userinfo.Job_Category__c; |
| | | res.isActive = report.Is_Active__c; |
| | | res.profileId = userinfo.ProfileId; |
| | | res.jobCategory = userinfo.Job_Category__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public string IsActive; |
| | | public string isActive; |
| | | @AuraEnabled |
| | | public string ProfileId; |
| | | public string profileId; |
| | | @AuraEnabled |
| | | public string JobCategory; |
| | | public string jobCategory; |
| | | } |
| | | } |