Skip to content

FlowLogEntry

SUPPRESSWARNINGS

Handles adding new log entries in Flow

Group Logger Engine

See FlowRecordLogEntry

See FlowCollectionLogEntry

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

Optionally relate the log entry to a particular record ID

global recordId

Id


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

INVOCABLEMETHOD

Invocable method, that can be called via flow.

global static List<String> addFlowEntries(List<FlowLogEntry> flowLogEntries)
Name Type Description
flowLogEntries List The list of FlowLogEntry instances to save

List

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