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

7 lines
265 B
OpenEdge ABL

public with sharing class AccountController {
@AuraEnabled(cacheable=true)
public static List<Account> findAccounts(String searchKey) {
String key = searchKey + '%';
return [SELECT Id, Name FROM Account WHERE Name LIKE :key LIMIT 5];
}
}