/
Database view containing the GL account creation date

Database view containing the GL account creation date

Description of Issue

Client is looking to report on the date a given GL account was created

Context
  • SSRS reports

  • SaaS, Tyler-hosted clients

  • OnPrem, Self-hosted clients

  • Account Inquiry

  • Enterprise ERP version 2019 and above

Cause

TRS view gl_master does not contain the created on date. 

Resolution

Date created needs to be retrieved from the TRS view sp_audit_history. The following sample SQL query shows how to use sp_audit_history and gl_master to retrieve this date for all general ledger accounts.

SELECT
a_fund_seg1, 
a_org, 
a_object,
sa_change_date as [Date Created]

FROM [sp_audit_history]
LEFT JOIN gl_master
on a_org = SUBSTRING(sa_key_number,1,(CHARINDEX(' ',sa_key_number + ' ')-1))
and a_object=RIGHT(RTRIM(sa_key_number),(CHARINDEX' ',REVERSE(RTRIM(sa_key_number))+' ')-1)

WHERE
sa_file='glmaster'
and sa_action ='A' 

Additional Information

 

Related content

Access audits for changes made to Default Year Period or Current Year Period in GL Settings
Access audits for changes made to Default Year Period or Current Year Period in GL Settings
More like this
gl_master_audit view does not return any records
gl_master_audit view does not return any records
More like this
Report GL Balance by date
Report GL Balance by date
More like this
Is there a report that would pull a list of all new accounts created for a specific timeframe
Is there a report that would pull a list of all new accounts created for a specific timeframe
More like this
GL report showing journal Post Date
GL report showing journal Post Date
More like this
TRS views for EERP user last login date and time
TRS views for EERP user last login date and time
More like this