1. Home
  2. /
  3. Docs
  4. /
  5. Articles Report Writer
  6. /
  7. Private: Sage 50 Function...
  8. /
  9. Event Log

Event Log

Event Type

Function: Eventlog_EventType(EventType: Variant): string

CodeMeaning
1Customer/Prospect
2Employee/Sales Rep
3Vendor
4Todo
(other/invalid)Unknown

Event Category

Function: Eventlog_EventCategory(EventCategory: Variant): string


Code
Meaning
0Activity
1Quote Sent
2Quote Expiring
3Ship by Date
4Invoice Sent
5Invoice Due
6Customer Credit Memo
7Collection Letter
8Receipt
9PO Sent
10PO Expiring
11Bill Due
12Check to Vendor
13Paycheck
(other/invalid)Unknown


Event Completed Timestamp Field

The Event Completed field is a Unix Timestamp Field so to deal with a SQL select statement you need convert it to a standard Datetime field. Use the following in your SQL Statement so you will not receive errors:

DATEADD(SECOND,EventLogs.completed,'1970-01-01 00:00:00') AS CompletedDT

Example:

SELECT eventdate,DATEADD(SECOND,EventLogs.completed,’1970-01-01 00:00:00′) AS CompletedDT,RecordNumber,
EventIDType FROM EventLogs;