public with sharing class lexOpportunity12RatingController { @AuraEnabled public static Opportunity getRatings(String recordId){ try { Opportunity oppo = [ select Rating01__c, Rating02__c, Rating03__c, Rating04__c, Rating05__c, Rating06__c, Rating07__c, Rating08__c, Rating09__c, Rating10__c, Rating11__c, Rating12__c from Opportunity where Id =: recordId ]; return oppo; } catch (Exception e) { throw new AuraHandledException(e.getMessage()); } } }