The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, OmniStudio, and integrations.
Handles adding new log entries in Flow for a particular SObject
record collection
faultMessage
→ String
Optionally log a Flow fault error message
flowName
→ String
The API name of the Flow creating the log entry. Due to Salesforce limitations, this cannot be automatically determined
loggingLevelName
→ String
Optionally specify a logging level - the default is 'DEBUG'
message
→ String
The message to log
records
→ List<SObject>
The records to relate to this log entry - the records' JSON is automatically added to the log entry
saveLog
→ Boolean
Optionally choose to save any pending log entries
saveMethodName
→ String
Optionally choose the save method to use when 'Save Log' is true
scenario
→ String
Optionally specify the name to use for the current transaction's scenario
shouldThrowFaultMessageException
→ Boolean
Optionally rollback Database operations executed until Apex action was called and save the log entry.
tagsString
→ String
Optionally provide a comma-separated String of tags to dynamically assign to the log entry
timestamp
→ DateTime
Represents the current system time
topics
→ List<String>
Optionally provide a comma-separated String of tags to dynamically assign to the log entry
addFlowCollectionEntries(List<FlowCollectionLogEntry> flowCollectionLogEntries)
→ List<String>
Invocable method for adding LogEntry records via flow or process builder
Param | Description |
---|---|
flowCollectionLogEntries |
The list of FlowRecordLogEntry instances to save |
Type
List<String>
Description
The current transaction's ID (based on Logger.getTransactionId()
)