Skip to content

CallableLogger Enhancements

Compare
Choose a tag to compare
@jongpie jongpie released this 31 Oct 21:02
· 5 commits to main since this release
1707c41

Thanks to @aBerean2 for some great feedback on logging in OmniStudio (see discussion #785)!

Core Unlocked Package Changes

Added 3 enhancements to the CallableLogger class (used for OmniStudio logging & loosely-coupled dependencies)

  1. Resolved #788 - It now automatically appends OmniStudio's input data for OmniScript steps as JSON to the Message__c fields on LogEntryEvent__e and LogEntry__c.

    • In the screenshot below, a simple OmniScript has been setup with 2 steps (each of which shows some inputs), with logging actions after each step:

      image

    • It now automatically stores the JSON from each of the steps & appends it to the message. Long-term, it might make sense to create a new field to store this data, but for now, appending it to Message__c is a quick & easy way to capture the JSON.

      image

  2. The newEntry action now supports setting the parent log transaction ID, using the optional argument parentLogTransactionId.

  3. Transaction details are now returned in the output for all actions:

    • transactionId: The current transaction ID, returned from Logger.getTransactionId()
    • parentLogTransactionId: The parent log transaction ID (or null if no parent has been set), returned from Logger.getParentLogTransactionId()
    • requestId: The Salesforce-generated request ID, returned from System.Request.getCurrent().getRequestId()

    {073C80F5-D96D-4E03-B383-A1168D906A82}

Installation Info

Core Unlocked Package - no namespace

Full Changelog: v4.14.15...v4.14.16