Skip to content

FlowCollectionLogEntry

SUPPRESSWARNINGS

Handles adding new log entries in Flow for a particular SObject record collection

Group Logger Engine

See FlowLogEntry

See FlowRecordLogEntry

See FlowLogger

See Logger

See LogEntryEventBuilder

INVOCABLEVARIABLE

Optionally log a Flow fault error message

global faultMessage

String


INVOCABLEVARIABLE

The API name of the Flow creating the log entry. Due to Salesforce limitations, this cannot be automatically determined

global flowName

String


INVOCABLEVARIABLE

Optionally specify a logging level - the default is 'DEBUG'

global loggingLevelName

String


INVOCABLEVARIABLE

The message to log

global message

String


INVOCABLEVARIABLE

The records to relate to this log entry - the records' JSON is automatically added to the log entry

global records

List


INVOCABLEVARIABLE

Optionally choose to save any pending log entries

global saveLog

Boolean


INVOCABLEVARIABLE

Optionally choose the save method to use when 'Save Log' is true

global saveMethodName

String


INVOCABLEVARIABLE

Optionally specify the name to use for the current transaction's scenario

global scenario

String


INVOCABLEVARIABLE

Optionally rollback Database operations executed until Apex action was called and save the log entry.

global shouldThrowFaultMessageException

Boolean


INVOCABLEVARIABLE

Optionally provide a comma-separated String of tags to dynamically assign to the log entry

global tagsString

String

addFlowCollectionEntries(flowCollectionLogEntries)

Section titled “addFlowCollectionEntries(flowCollectionLogEntries)”

INVOCABLEMETHOD

Invocable method for adding LogEntry records via flow or process builder

global static List<String> addFlowCollectionEntries(List<FlowCollectionLogEntry> flowCollectionLogEntries)
Name Type Description
flowCollectionLogEntries List The list of FlowRecordLogEntry instances to save

List

The current transaction's ID (based on Logger.getTransactionId() )