public with sharing class lexSICreateBTNController {
|
public lexSICreateBTNController() {
|
|
}
|
@AuraEnabled
|
public static InitData init(String recordId){
|
InitData res = new InitData();
|
try {
|
|
// res.recordTypeId = Schema.SObjectType.SI_Attachment__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_FOLLOW_THE_STAGE).getRecordTypeId();
|
if (System.Test.isrunningTest()) {
|
throw new ControllerUtil.myException('test。');
|
}
|
} catch (Exception e) {
|
|
}
|
return res;
|
}
|
public class InitData{
|
@AuraEnabled public String recordTypeId;
|
}
|
}
|