Workflows run in the background and are triggered by various events in the system. In order to help keep an eye on the feature, the platform offers ways to monitor the execution of workflows and their associated workflow actions.
1. Enable logging for the workflow(s)
Go to Setup > Monitoring > Log Setting. This will display the list users with logging enabled. Open your user or click New to create a new logging profile.
This will display a wizard similar to the screen below. At this point, fill up the required information and select the modules and workflows where you need logging to be enabled for.
The following table can be used as a guide for the different fields/sections of the wizard.
|System||Indicates if the logging will be made against the system user. This is normally done to view the logs for scheduled workflows. These are executed by the system user and are not tied to any particular UI user.|
|User||Applicable only when the System checkbox is not ticked. Allows the selection of the user that the log profile will belong too. This is done since different platform users prefer different levels of logging.|
|Start Date||Date when logging will start. This can be a date in the past but logging will only start i the next instance that the module is executed.|
|Duration, minutes||Indicates how long the logging will be enabled in minutes. Note that leaving this blank will result to the system to NOT generate logs.|
Click Submit to save the changes.
2. Monitor the number of operations performed for the workflow(s) and workflow action(s).
Upon accessing the details of the workflows where logging is enabled, a section towards the bottom of the page will show basic counters on the operations executed by the workflow and workflow actions. This will provide high-level view on how often the workflow/action has been executed, how many errors it encountered, etc.
3. View the log details
This feature allows for the exporting of the log information depending on the modules and log-type configurations that were made for the user's logging profile. To access the logs, go to the user's logging profile via Setup > Monitoring > Log Setting and click the profile to open its details. A page similar to the one below will be displayed:
From the details page, the Log Records should be populated with log entries. The Export button can be clicked which will allow you to download a CSV file containing the log entries for offline viewing or further investigation.
Alternatively, the real-time logging can be used to view all log-enabled events. This can be accessed via the Log button on the account pop-up as shown in the screenshot below:
This will open a new tab/window that will contain the real-time logs in the application in the context of active logging profiles. This can include workflow messages if there are active logging profiles that filter for workflow-related events.