twysparks
2023-05-06 0994d62436004bd83059c51a48b7cd430feb9f43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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());
        }
    }
}