Date printed: 03-28-2024 Last updated: 05-29-2014 To view our complete support knowledge base and most current version of this article visit support.timeips.com. |
316-264-1600 Information Sales Support |
This article explains the ability to customize when an Audit Alert is sent.
When TimeIPS processes audits, it will look for any alerts to trigger. With expressions you can apply custom logic for if the alert should be sent.
To use custom logic you must define the expression in the "Expression" field for that Audit Alert. Expressions must start with an equals sign '='. They provide a single line of code that is evaluated and returns TRUE or FALSE.
Audit Alert expressions utilize the same expression parser as Custom Reports. As such the same functions are available. The list of functions is available at this article.
The following information is available
Variable Name | Description |
---|---|
[usersID] | This is the unique database ID of the employee whose event was audited. |
[divisionID] | This is the unique database ID of the division of the employee whose event was audited. |
[eventLogID] | This is the unique database ID of the event that was audited. |
[adjTimeIn] | This is the adjusted time in of the event after the audit has taken place. |
[adjTimeOut] | This is the adjusted time out of the event after the audit has taken place. |
[audit_time] | This is the Unix timestamp of when the audit was made. Convert this with the utcdate function. |
[audit_part] | This is the part of the event that was audited, either 'in', 'out', or 'event' |
[audit_eventAction] | This is the action on the event that was audited, either 'create', 'edit', or 'delete' |
To send audit alerts in all cases:
=1
To send audit alerts only for time events that are deleted:
=if([audit_eventAction]="delete",1,0)
To send audit alerts only for hourly employees:
=if(getUserSalaryTypeAtTime([usersID], [adjTimeIn])="Hourly",1,0)