public with sharing class buttonCampaignCtl {
|
public buttonCampaignCtl() {
|
|
}
|
|
@AuraEnabled
|
public static InitData init(String recordId){
|
InitData res = new initData();
|
try{
|
Campaign report = [SELECT Id,Status FROM Campaign WHERE Id =: recordId LIMIT 1];
|
System.debug(LoggingLevel.INFO, '*** opp: ' + report);
|
res.Id = report.Id;
|
res.Status = report.Status;
|
|
System.debug(LoggingLevel.INFO, '*** res: ' + res);
|
}catch(Exception e){
|
System.debug(LoggingLevel.INFO, '*** e: ' + e);
|
}
|
return res;
|
}
|
|
public class InitData{
|
@AuraEnabled
|
public String Id;
|
@AuraEnabled
|
public String Status;
|
}
|
}
|