Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added 3 enhancements to the
CallableLogger
class (used for OmniStudio logging & loosely-coupled dependencies)Resolved Log the JSON input provided for Steps in OmniStudio #788 - It now automatically appends OmniStudio's input data for OmniScript steps as JSON to the
Message__c
fields onLogEntryEvent__e
andLogEntry__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:
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.The
newEntry
action now supports setting the parent log transaction ID, using the optional argumentparentLogTransactionId
.Transaction details are now returned in the output for all actions:
transactionId
: The current transaction ID, returned fromLogger.getTransactionId()
parentLogTransactionId
: The parent log transaction ID (ornull
if no parent has been set), returned fromLogger.getParentLogTransactionId()
requestId
: The Salesforce-generated request ID, returned fromSystem.Request.getCurrent().getRequestId()