Apex Controller for the Case Render App
public class CasesController { | |
@AuraEnabled | |
public static List<Case> GetRecentCases() | |
{ | |
List<Case> cases=[select id, CaseNumber, Subject, CreatedDate, Status, Priority | |
from Case | |
order by CreatedDate desc | |
limit 5]; | |
return cases; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment