Skip to content

SaveMethod support in Flow & Lightning Components, RegEx filtering in logEntryEventStream component

Compare
Choose a tag to compare
@jongpie jongpie released this 18 Nov 15:25
· 118 commits to main since this release
e9ac332

Support for Specifying a SaveMethod in Flow Invocable Classes and Lightning Components

Logging for Flow and Lightning Components can now specify the name of an instance of Logger.SaveMethod to use when saving. This is conceptually the same feature that Apex developers can already use by calling Logger.saveLog(SaveMethod)

  • All 3 Flow Log Entry invocable classes have a new optional property called 'Save Method' that can be used to specify the save method to use when 'Save Log' is true

    image

  • logger.js now accepts an optional parameter saveMethodName when calling saveLog()

    const logger = this.template.querySelector(LOGGER_NAME);
    logger.info('example of logging in LWC');
    logger.saveLog('QUEUEABLE'); // Supported options are: EVENT_BUS (default), QUEUEABLE, REST_API, and SYNCRONOUS_DML
  • Added a function getUserSettings() to logger.js - this returns an instance of ComponentLogger.ComponentLoggerSettings. It is conceptually similar to the Apex method Logger.getUserSettings()

RegEx Filtering in logEntryEventStream Component

@jamessimone made some amazing enhancements to the 'Log Entry Event Stream' tab in #251

  • Now, you can use regex for advanced criteria when filtering on LogEntryEvent__e records

  • A filter for the new field LogEntryEvent__e.Scenario__c has also been included, providing yet another way to filter on LogEntryEvent__e records

    image

Other Changes

  • All metadata has been updated to API v53.0 (Winter '22 release)