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();
|
} catch (Exception e) {
|
throw new AuraHandledException(e.getMessage());
|
}
|
return res;
|
}
|
class InitData{
|
@AuraEnabled public String recordTypeId;
|
}
|
}
|