Untitled

 avatar
unknown
plain_text
2 years ago
297 B
7
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...