Signature

global static List<Event> GetEventDetails(
  List<GetEventDetails.FlowInput> inputs
)
Invocable Apex classThis is an invocable Apex class, not a Client method. Call it as cldfs.GetEventDetails.GetEventDetails(inputs) rather than cldfs.Client.*. Each FlowInput carries either an Event custom object (CloudFilesEvent__c) or an Event platform event (CloudFiles_Event__e), matching your CloudFiles Event Mode setting.
Parameters
ParameterDescription
inputs
List<GetEventDetails.FlowInput>
requiredOne entry per event to resolve. Each FlowInput exposes eventCustomObj (Event custom object) and event (Event platform event); populate whichever matches your CloudFiles Event Mode setting.

Return Type

List<Event> — the resolved CloudFiles Event objects.

Example

List<cldfs.Event> returnedEvents = new List<cldfs.Event>();

List<cldfs.GetEventDetails.FlowInput> getEventDetailInputs = new List<cldfs.GetEventDetails.FlowInput>();

for(cldfs__CloudFilesEvent__c record : Trigger.new){){
    cldfs.GetEventDetails.FlowInput singleInput = new cldfs.GetEventDetails.FlowInput();
    singleInput.eventCustomObj = record;
    getEventDetailInputs.add(singleInput);
}

returnedEvents = cldfs.GetEventDetails.GetEventDetails(getEventDetailInputs);
List<cldfs.Event> returnedEvents = new List<cldfs.Event>();
List<cldfs.GetEventDetails.FlowInput> getEventDetailInputs = new List<cldfs.GetEventDetails.FlowInput>();

for(cldfs__CloudFiles_Event__e pe : Trigger.new){
    cldfs.GetEventDetails.FlowInput singleInput = new cldfs.GetEventDetails.FlowInput();
    singleInput.event = pe;
    getEventDetailInputs.add(singleInput);
}

returnedEvents = cldfs.GetEventDetails.GetEventDetails(getEventDetailInputs);