Logging in OmniStudio - jongpie/NebulaLogger GitHub Wiki
As of v4.14.10
, you can use Nebula Logger to provide logging capabilities in OmniStudio. This is done by leveraging the included CallableLogger
Apex class as a remote action to add log entries, save the log, and interact with other parts of Nebula Logger's functionality.
For OmniStudio builders, the included Apex class CallableLogger
can be used in:
OmniScript
metadataOmniIntegrationProcedure
metadata
In both cases, the CallableLogger
class can be configured as a remote action - depending on which action is being called, some additional inputs may need to be provided. For more details (including what actions are available, and their required inputs), see the list of available actions in the CallableLogger
Apex class.
Logging in OmniScripts
First, find & add a remote action element to your OmniScript
Within the remote action, there are 2 or 3 items to provide for the action:
- Remote Class:
CallableLogger
- Remote Method: The name of the action in
CallableLogger
- Extra Payload: Any additional inputs required for the specified action. Not all actions in Nebula Logger require additional inputs.
Logging in Integration Procedures
Similar to OmniScripts, first, find & add a remote action to your Integration Procedure
Within the remote action, there are 2 or 3 items to provide for the action:
- Remote Class:
CallableLogger
- Remote Method: The name of the action in
CallableLogger
- Additional Input: Any additional inputs required for the specified action. Not all actions in Nebula Logger require additional inputs.