FlowLogEntry
FlowLogEntry Class
SUPPRESSWARNINGS
Handles adding new log entries in Flow
Group Logger Engine
See FlowLogger
See Logger
Fields
faultMessage
INVOCABLEVARIABLE
Optionally log a Flow fault error message
Signature
global faultMessageType
String
flowName
INVOCABLEVARIABLE
The API name of the Flow creating the log entry. Due to Salesforce limitations, this cannot be automatically determined.
Signature
global flowNameType
String
loggingLevelName
INVOCABLEVARIABLE
Optionally specify a logging level - the default is ‘DEBUG’
Signature
global loggingLevelNameType
String
message
INVOCABLEVARIABLE
The message to log
Signature
global messageType
String
recordId
INVOCABLEVARIABLE
Optionally relate the log entry to a particular record ID
Signature
global recordIdType
Id
saveLog
INVOCABLEVARIABLE
Optionally choose to save any pending log entries
Signature
global saveLogType
Boolean
saveMethodName
INVOCABLEVARIABLE
Optionally choose the save method to use when ‘Save Log’ is true
Signature
global saveMethodNameType
String
scenario
INVOCABLEVARIABLE
Optionally specify the name to use for the current transaction’s scenario
Signature
global scenarioType
String
shouldThrowFaultMessageException
INVOCABLEVARIABLE
Optionally rollback Database operations executed until Apex action was called and save the log entry.
Signature
global shouldThrowFaultMessageExceptionType
Boolean
tagsString
INVOCABLEVARIABLE
Optionally provide a comma-separated String of tags to dynamically assign to the log entry
Signature
global tagsStringType
String
Methods
addFlowEntries(flowLogEntries)
INVOCABLEMETHOD
Invocable method, that can be called via flow.
Signature
global static List<String> addFlowEntries(List<FlowLogEntry> flowLogEntries)Parameters
| Name | Type | Description |
|---|---|---|
| flowLogEntries | List | The list of FlowLogEntry instances to save |
Return Type
List
The current transaction’s ID (based on Logger.getTransactionId() )