FlowCollectionLogEntry
FlowCollectionLogEntry Class
SUPPRESSWARNINGS
Handles adding new log entries in Flow for a particular SObject record collection
Group Logger Engine
See FlowLogEntry
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
records
INVOCABLEVARIABLE
The records to relate to this log entry - the records’ JSON is automatically added to the log entry
Signature
global recordsType
List
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
addFlowCollectionEntries(flowCollectionLogEntries)
INVOCABLEMETHOD
Invocable method for adding LogEntry records via flow or process builder
Signature
global static List<String> addFlowCollectionEntries(List<FlowCollectionLogEntry> flowCollectionLogEntries)Parameters
| Name | Type | Description |
|---|---|---|
| flowCollectionLogEntries | List | The list of FlowRecordLogEntry instances to save |
Return Type
List
The current transaction’s ID (based on Logger.getTransactionId() )