Skip to content

FLOW_LoggerStart

Class · Group: Logging

apex
global inherited sharing class FLOW_LoggerStart

Starts a logging correlation for a Flow. Use this at the beginning of a Flow to generate a correlation ID that links all subsequent log entries.

Example

In Flow Builder: Add "Start Flow Correlation" action at the beginning Set Flow Name (e.g., "Create Account") Optionally set Record ID for context Store the returned Correlation ID in a variable Pass this ID to subsequent "Log Flow Event" and "End Flow Correlation" actions


Methods

MethodDescription
global static List<FLOW_LoggerStart.DTO_Response> execute(List<FLOW_LoggerStart.DTO_Request> dtoRequests)Starts a correlation context for Flow logging.

execute

apex
@InvocableMethod(category='Logging' description='Starts logging correlation for a Flow. Returns a correlation ID to pass to other logging actions.' label='Start Flow Correlation') global static List<FLOW_LoggerStart.DTO_Response> execute(List<FLOW_LoggerStart.DTO_Request> dtoRequests)

Starts a correlation context for Flow logging.

Parameters

ParameterTypeDescription
dtoRequestsListList of input parameters

Returns FLOW_LoggerStart.DTO_Response — List of outputs containing correlation IDs

Inner Classes

ClassDescription
DTO_RequestInput parameters for starting Flow correlation.
DTO_ResponseOutput containing the generated correlation ID.