<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Work Queue Data in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45141#M1441</link>
    <description>Hi Tushar,&lt;BR /&gt;&lt;BR /&gt;You can get a consolidated report on which queue items for what queues belonging to which processes have been run by what resources by using the below SQL query:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-plsql"&gt;&lt;CODE&gt;SELECT TOP (1000) P.[name] AS [Process_Name], WQ.[name] AS [Queue_Name], R.[name] AS [Resource_Name], WQI.[ident],WQI.[keyvalue],WQI.[status],WQI.[attempt],WQI.[loaded],WQI.[completed],WQI.[exception],
WQI.[exceptionreason],WQI.[deferred],WQI.[locktime],WQI.[worktime],WQI.[priority],WQI.[prevworktime],WQI.[attemptworktime],WQI.[finished],
WQI.[lastupdated],WQI.[exceptionreasonvarchar],WQI.[exceptionreasontag]

FROM BPAWorkQueueItem WQI INNER JOIN BPAWorkQueue WQ
ON WQI.queueid = WQ.id INNER JOIN BPASession S
ON WQI.sessionid = S.sessionid INNER JOIN BPAResource R
ON S.runningresourceid = R.resourceid INNER JOIN BPAProcess P
ON S.processid = P.processid​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16170.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16330i6A0A9DDC93F84CED/image-size/large?v=v2&amp;amp;px=999" role="button" title="16170.png" alt="16170.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the '&lt;STRONG&gt;Best Answer&lt;/STRONG&gt;' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Jun 2022 11:59:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-06-14T11:59:00Z</dc:date>
    <item>
      <title>Work Queue Data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45140#M1440</link>
      <description>Hi Community&lt;BR /&gt;&lt;BR /&gt;I wanted to if we have any metadata that stores the work queue creation date in the BP DB. I want to do a net new bot analysis to check the contribution of new bots.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tushar Arora&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45140#M1440</guid>
      <dc:creator>TusharArora</dc:creator>
      <dc:date>2022-06-14T09:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Work Queue Data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45141#M1441</link>
      <description>Hi Tushar,&lt;BR /&gt;&lt;BR /&gt;You can get a consolidated report on which queue items for what queues belonging to which processes have been run by what resources by using the below SQL query:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-plsql"&gt;&lt;CODE&gt;SELECT TOP (1000) P.[name] AS [Process_Name], WQ.[name] AS [Queue_Name], R.[name] AS [Resource_Name], WQI.[ident],WQI.[keyvalue],WQI.[status],WQI.[attempt],WQI.[loaded],WQI.[completed],WQI.[exception],
WQI.[exceptionreason],WQI.[deferred],WQI.[locktime],WQI.[worktime],WQI.[priority],WQI.[prevworktime],WQI.[attemptworktime],WQI.[finished],
WQI.[lastupdated],WQI.[exceptionreasonvarchar],WQI.[exceptionreasontag]

FROM BPAWorkQueueItem WQI INNER JOIN BPAWorkQueue WQ
ON WQI.queueid = WQ.id INNER JOIN BPASession S
ON WQI.sessionid = S.sessionid INNER JOIN BPAResource R
ON S.runningresourceid = R.resourceid INNER JOIN BPAProcess P
ON S.processid = P.processid​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16170.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16330i6A0A9DDC93F84CED/image-size/large?v=v2&amp;amp;px=999" role="button" title="16170.png" alt="16170.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the '&lt;STRONG&gt;Best Answer&lt;/STRONG&gt;' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45141#M1441</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-06-14T11:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Work Queue Data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45142#M1442</link>
      <description>Hi Tushar,&lt;BR /&gt;&lt;BR /&gt;yes - it is stored in the audit logs within the system section.&lt;BR /&gt;&lt;BR /&gt;Go to System --&amp;gt; Audit --&amp;gt; Audit Logs, then select the date range you are looking for, and open the relevant log:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16171.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16325i4675BE4967D7F120/image-size/large?v=v2&amp;amp;px=999" role="button" title="16171.png" alt="16171.png" /&gt;&lt;/span&gt;&lt;BR /&gt;once open, the log will then show an event where a user created/modified a work queue.&lt;BR /&gt;These logs can be then saved into files via the File menu.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16172.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16326iE95B970941BB97F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="16172.png" alt="16172.png" /&gt;&lt;/span&gt;&lt;BR /&gt;To do this programmatically, you would need read access to the blue prism sql database, and read the BPAAuditEvents table using any SQL management tool (i.e. SSMS).&lt;BR /&gt;&lt;BR /&gt;The table contains all auditable events, and can be filtered via the 'scode' column to find the event type you are looking for.&lt;BR /&gt;See example below:&lt;BR /&gt;
&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="768" style="border-collapse: collapse; width: 576pt; height: 45px;"&gt;
&lt;TBODY&gt;
&lt;TR height="20" style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15px; width: 102.531px;"&gt;eventdatetime&lt;/TD&gt;
&lt;TD style="width: 52.7969px; height: 15px;"&gt;eventid&lt;/TD&gt;
&lt;TD style="width: 43.6406px; height: 15px;"&gt;sCode&lt;/TD&gt;
&lt;TD style="width: 73.1562px; height: 15px;"&gt;sNarrative&lt;/TD&gt;
&lt;TD style="width: 109.609px; height: 15px;"&gt;gSrcUserID&lt;/TD&gt;
&lt;TD style="width: 79.7031px; height: 15px;"&gt;gTgtUserID&lt;/TD&gt;
&lt;TD style="width: 78.0469px; height: 15px;"&gt;gTgtProcID&lt;/TD&gt;
&lt;TD style="width: 111.828px; height: 15px;"&gt;gTgtResourceID&lt;/TD&gt;
&lt;TD style="width: 108.438px; height: 15px;"&gt;comments&lt;/TD&gt;
&lt;TD style="width: 96.2656px; height: 15px;"&gt;EditSummary&lt;/TD&gt;
&lt;TD style="width: 51.25px; height: 15px;"&gt;oldXML&lt;/TD&gt;
&lt;TD style="width: 58.8438px; height: 15px;"&gt;newXML&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="20" style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl63" align="right" style="height: 15px; width: 102.531px;"&gt;29:19.5&lt;/TD&gt;
&lt;TD align="right" style="height: 15px; width: 52.7969px;"&gt;212&lt;/TD&gt;
&lt;TD style="height: 15px; width: 43.6406px;"&gt;Q001&lt;/TD&gt;
&lt;TD style="height: 15px; width: 73.1562px;"&gt;The user 'admin' created the queue 'Queue 1'&lt;/TD&gt;
&lt;TD style="height: 15px; width: 109.609px;"&gt;0907D89C-6FD3-4FB8-8848-D13E3878E249&lt;/TD&gt;
&lt;TD style="height: 15px; width: 79.7031px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 78.0469px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 111.828px;"&gt;00000000-0000-0000-0000-000000000000&lt;/TD&gt;
&lt;TD style="height: 15px; width: 108.438px;"&gt;New queue name is Queue 1&lt;/TD&gt;
&lt;TD style="height: 15px; width: 96.2656px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 51.25px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 58.8438px;"&gt;NULL&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="20" style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl63" align="right" style="height: 15px; width: 102.531px;"&gt;29:26.3&lt;/TD&gt;
&lt;TD align="right" style="height: 15px; width: 52.7969px;"&gt;213&lt;/TD&gt;
&lt;TD style="height: 15px; width: 43.6406px;"&gt;Q002&lt;/TD&gt;
&lt;TD style="height: 15px; width: 73.1562px;"&gt;The user 'admin' modified the queue 'New Queue'&lt;/TD&gt;
&lt;TD style="height: 15px; width: 109.609px;"&gt;0907D89C-6FD3-4FB8-8848-D13E3878E249&lt;/TD&gt;
&lt;TD style="height: 15px; width: 79.7031px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 78.0469px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 111.828px;"&gt;00000000-0000-0000-0000-000000000000&lt;/TD&gt;
&lt;TD style="height: 15px; width: 108.438px;"&gt;Queue ID is 05248ac9-7ba2-4b6f-badd-403a5f903142. New config: (New Queue, Field 1, 1, Not Encrypted0)&lt;/TD&gt;
&lt;TD style="height: 15px; width: 96.2656px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 51.25px;"&gt;NULL&lt;/TD&gt;
&lt;TD style="height: 15px; width: 58.8438px;"&gt;NULL&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;By doing a simple search: &lt;BR /&gt;SELECT * From BPAAuditEvents Where sCode In('Q001','Q001')&lt;BR /&gt;&lt;BR /&gt;You will get a list returned showing all create/modify work queue events.&lt;BR /&gt;This can be further enhanced with more search criteria.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrzej Silarow&lt;BR /&gt;Principal Consultant&lt;BR /&gt;Ignite IPA&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Work-Queue-Data/m-p/45142#M1442</guid>
      <dc:creator>asilarow</dc:creator>
      <dc:date>2022-06-15T09:43:00Z</dc:date>
    </item>
  </channel>
</rss>

