cancel
Showing results for 
Search instead for 
Did you mean: 

Know the number of sessions for a particular process for a particular day

YashaswiniB
Level 3
Hi All, 
How do we know  the number of sessions of a particular process for a particular day?
Is there any way to know it from control room ?
If we have to query the DB, may I know the query please

------------------------------
Yashaswini B
------------------------------
2 REPLIES 2

Hi Yashaswini,

The following query can help you to get the number of sessions being run on any particular date and for any particular process:

SELECT B.[name] AS process_name, COUNT(A.[processid]) AS session_count
FROM [Blue Prism].[dbo].[BPASession] A INNER JOIN [Blue Prism].[dbo].[BPAProcess] B
ON A.processid = B.processid
WHERE CAST(A.[startdatetime] AS DATE) = '<DATE_VALUE>'
AND B.name = '<PROCESS_NAME>'
GROUP BY B.[name]

Substitute the highlighted text as per your requirement. Below is a sample query being run:

20926.png

------------------------------
----------------------------------
Hope it helps you and if it resolves your query please mark it as the best answer so that others having the same problem can track the answer easily

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------


Hope it helps you out and if my solution resolves your query, then please mark it as the best answer

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Technical Business Analyst,
WonderBotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------

Thank you so much, I will try this