cancel
Showing results for 
Search instead for 
Did you mean: 

Control Room Reporting

StephenColeman
Level 4
Hi all, Hopefully this is the right forum for this.  We have an Automated MI process utilising the Work Queues object to extract the number of completed/exception cases for a given work queue on demand.  Is there a similar object that can extract the number of times a process has run within a particular date range? Thanks, Steve
1 REPLY 1

BenKirimlidis
Level 7
Hi, Not sure about the BP objects but if you have read acess to the MS SQL DB (or better a mirror of the MS SQL DB), you can use the query below. To get it to work you just need the name of the BP databse and replace the 'xxxxxxx' Then add a WHERE clause for the specific date range you are interested in Lastly add the process name to the WHERE clause ---------CODE STARTS HERE USE XXXXXXX;      --    Replace with the name of your database GO   with SessionLog as       (       SELECT                         S.SessionID                         ,S.StartDateTime                         ,S.EndDateTime                         ,S.StopRequested                         ,S.LastUpdated                         ,S.LastStage                         ,P.Name as ProcessName                               FROM        [dbo].[BPASession] as S         inner join  [dbo].[BPAProcess] as P       on                P.[processid] = S.[processid]       and               P.[ProcessType] = 'P'       )       select      LG.* from  SessionLog as LG ; ---------CODE ENDS HERE