This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class EmailAction { | |
@InvocableMethod(label='Send Email') | |
global static List<EmailActionResult> sendEmails(List<EmailActionRequest> requests) { | |
List<EmailActionResult> results = new List<EmailActionResult>(); | |
for(EmailActionRequest request : requests){ | |
results.add(sendEmail(request)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | |
} | |
} |