FLOW_LoggerStart
Class · Group: Logging
apex
global inherited sharing class FLOW_LoggerStartStarts 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.
Since: 1.0
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
| Method | Description |
|---|---|
| global static List execute(List<FLOW_LoggerStart.DTO_Request> dtoRequests) | Starts a correlation context for Flow logging. |
Inner Classes
| Class | Description |
|---|---|
| DTO_Request | Input parameters for starting Flow correlation. |
| DTO_Response | Output containing the generated correlation ID. |
Method Details
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:
dtoRequests(List) - List of input parameters
Returns: FLOW_LoggerStart.DTO_Response - List of outputs containing correlation IDs
Since: 1.0