This action logs an event of the type selected to the site's Admin Logs. You can specify a UserID and custom properties to include in the log message. The message generated by this action can be viewed in Plant an App configuration under Logs > Event.
Typical Use Cases
- Log an alert message when a specific event triggers this action.
Don't use it to
- Log an error - Use Log Error instead
|Log Error||Writes a message to Admin Logs of type General Exception|
Input Parameter Reference
|Event Type||Select the type of event from the available options. If nothing is selected, defaults to Admin Alert. Using EXPR button, this value can be tokenized to return any of the available options based on the value passed in.||Yes||No|
|User ID||Optionally pass in a user ID to log with the event. If value is not set, UserID is logged as -1.||Yes||No|
|Log Properties||Click the add button to pass in Name and Value pairs that will be logged in the event details. Both Name and Value can be tokens.||Yes||No|
1. Log an Admin Alert when a user is denied access to a form
Import this action into the
On PreInit or
On Init sections of a form and edit the condition to check if the logged in user has permission to use the form. Follow this action with an error message displayed to the user.