Skip to content

Instantly share code, notes, and snippets.

@rsindall
Created September 9, 2020 20:45
Show Gist options
  • Save rsindall/30116de8421b15b66455dc3c16487541 to your computer and use it in GitHub Desktop.
Save rsindall/30116de8421b15b66455dc3c16487541 to your computer and use it in GitHub Desktop.
Example Full Calendar Event Controller
public with sharing class FullCalendarEventController {
@AuraEnabled(cacheable=true)
public static List<Event__c> fetchEvents() {
return [SELECT Name, Subject__c, Start_Date_Time__c, End_Date_Time__c FROM Event__c ORDER BY CreatedDate DESC];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment