FlowCollectionLogEntry
FlowCollectionLogEntry Class
Section titled “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
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
records
Section titled “records”INVOCABLEVARIABLE
The records to relate to this log entry - the records' JSON is automatically added to the log entry
Signature
Section titled “Signature”global recordsList
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”addFlowCollectionEntries(flowCollectionLogEntries)
Section titled “addFlowCollectionEntries(flowCollectionLogEntries)”INVOCABLEMETHOD
Invocable method for adding LogEntry records via flow or process builder
Signature
Section titled “Signature”global static List<String> addFlowCollectionEntries(List<FlowCollectionLogEntry> flowCollectionLogEntries)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| flowCollectionLogEntries | List |
The list of FlowRecordLogEntry instances to save |
Return Type
Section titled “Return Type”List
The current transaction's ID (based on Logger.getTransactionId() )