My_Test_Repo/force-app/main/default/classes/RelatedCon.cls

6 lines
233 B
OpenEdge ABL

public with sharing class RelatedCon{
@AuraEnabled(cacheable=true)
public static List<Contact> getcon(String acId){
Return[SELECT FirstName,LastName,Email,Phone From Contact WHERE AccountId=:acId];
}
}