| | |
| | | try { |
| | | User tempUser = [select Id,ProfileId from user where id = : myUserID ]; |
| | | result.id = tempUser.Id; |
| | | result.RecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('AgencyContract').getRecordTypeId(); |
| | | result.ProfileId = tempUser.ProfileId; |
| | | result.recordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('AgencyContract').getRecordTypeId(); |
| | | result.profileId = tempUser.ProfileId; |
| | | } catch (exception e) { |
| | | result.result = e.getMessage(); |
| | | } |
| | |
| | | @AuraEnabled |
| | | public string id; |
| | | @AuraEnabled |
| | | public String RecordTypeId; |
| | | public String recordTypeId; |
| | | @AuraEnabled |
| | | public string ProfileId; |
| | | public string profileId; |
| | | } |
| | | } |