You are viewing limited content. For full access, please sign in.

Question

Question

Count the number of documents a template is assigned to per day

asked on August 29, 2016

I am looking to make a crystal report that shows information on documents that are assigned a certain template. Does anyone know the best way to do this?

 

0 0

Answer

SELECTED ANSWER
replied on August 29, 2016

Sorry about that. You'll want to look at the all_events view and the pset_id, pset_name columns.

SELECT TOP 10 [event_id]
      ,[event_time]
      ,[event_type]
      ,[succeeded]
      ,[error_code]
      ,[session_id]
      ,[hostname]
      ,[appname]
      ,[trustee]
      ,[pset_id]
      ,[pset_name]
      
  FROM [all_events]
 WHERE event_type = 53

 

0 0

Replies

replied on August 29, 2016

The Audit Trail database schema is documented. You'd need to look at Assign Template events.

0 0
replied on August 29, 2016

I see where it stores the event "Assign template" in the SQL Database.  However, I do not see where it says which template is assigned

0 0
replied on August 29, 2016

What version of Audit Trail are you using? In looking at the database schema for Audit Trail 10, the [entry_events] view contains a column called [pset_name] so when you look for rows where the [event_type] column is 53 (i.e. Assign Template events) then the corresponding [pset_name] column values will tell you what template got assigned.

1 0
SELECTED ANSWER
replied on August 29, 2016

Sorry about that. You'll want to look at the all_events view and the pset_id, pset_name columns.

SELECT TOP 10 [event_id]
      ,[event_time]
      ,[event_type]
      ,[succeeded]
      ,[error_code]
      ,[session_id]
      ,[hostname]
      ,[appname]
      ,[trustee]
      ,[pset_id]
      ,[pset_name]
      
  FROM [all_events]
 WHERE event_type = 53

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.