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