Untitled

Anonymous
plain_text
01/26/2023 4:58 PM
396 B
22
Indexable
 @AuraEnabled(cacheable=true)
    public static Boolean  getSingleContact(){
        
     String accountId = [SELECT Accountid FROM User WHERE id = :userInfo.getUserId()].accountId;
     Boolean ShowPo = [SELECT Id,PO__c From Account where Id= :accountId].PO__c;
     return ShowPo;

    }
Editor is loading...