Control Room Reporting
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-03-19 08:54 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-04-19 09:21 PM
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
