FLOW_LoggerLog.DTO_Request
Class · Group: Logging
Learn it: Logging guide
global inherited sharing class FLOW_LoggerLog.DTO_RequestInput parameters for logging a Flow event.
Fields
| Field | Description |
|---|---|
| global String additionalContext | Additional context to include with the log entry |
| global String correlationId | Correlation ID from Start Flow Correlation |
| global String flowName | The name of the Flow this event belongs to. |
| global String flowStep | Current step/screen name for context |
| global String logLevel | The log level: Debug, Info, Warning, or Error (stored as DEBUG, INFO, WARN, or ERROR). |
| global String message | The text of the log entry. |
| global Id recordId | Optional record to associate with this log entry. |
additionalContext
@InvocableVariable(description='Additional context to include with the log entry' label='Additional Context') global String additionalContextType: String
Additional context to include with the log entry
Example
String value = instance.additionalContext;correlationId
@InvocableVariable(required=true description='Correlation ID from Start Flow Correlation' label='Correlation ID') global String correlationIdType: String
Correlation ID from Start Flow Correlation
Example
String value = instance.correlationId;flowName
@InvocableVariable(description='The name of the Flow this event belongs to. Filled in, the entry is filed under the Flow and the step stays in the location text; left blank, the entry is filed under the step, as before.' label='Flow Name') global String flowNameType: String
The name of the Flow this event belongs to. Filled in, the entry names the Flow as its source and keeps the step in its location text; left blank, the entry names the step, as before.
Example
String value = instance.flowName;flowStep
@InvocableVariable(description='Current step/screen name for context' label='Flow Step') global String flowStepType: String
Current step/screen name for context
Example
String value = instance.flowStep;logLevel
@InvocableVariable(description='Pick Debug, Info, Warning, or Error. Defaults to Info when left empty. Stored values are DEBUG, INFO, WARN, and ERROR.' label='Log Level') global String logLevelType: String
The log level: Debug, Info, Warning, or Error (stored as DEBUG, INFO, WARN, or ERROR). Defaults to INFO when left empty.
Example
String value = instance.logLevel;message
@InvocableVariable(required=true description='Log message' label='Message') global String messageType: String
The text of the log entry. It is saved with "[Flow] " in front of it, so entries written from a Flow are easy to tell apart from entries written by Apex.
Example
String value = instance.message;recordId
@InvocableVariable(description='Optional record to associate with this log entry' label='Record ID') global Id recordIdType: Id
Optional record to associate with this log entry. When set, the record is linked to the log entry so every log for that record can be filtered and reported on together. Leave blank when the log is not about a specific record.
Example
Id value = instance.recordId;