public with sharing class AccountUrlRecordTypeIdController {
|
@AuraEnabled
|
public static string AccountRecordTypeId(String Type){
|
return Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get(Type).getRecordTypeId();
|
}
|
|
// @AuraEnabled
|
// public static RepairContactData RepairContact(String recordId){
|
// 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.typeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('AgencyContact').getRecordTypeId();
|
// } catch (Exception e) {
|
// throw new AuraHandledException(e.getMessage());
|
// }
|
// return result;
|
// }
|
public class RepairContactData{
|
@AuraEnabled
|
public string typeId;
|
@AuraEnabled
|
public string departmentClassLabel;
|
}
|
}
|