<?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: SQL Query in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53838#M8453</link>
    <description>Table Name for Schedule:&amp;nbsp;[BPASchedule]&lt;BR /&gt;Table Name for Processes:&amp;nbsp;[BPAProcess]&lt;BR /&gt;Table Name for Resource Names:[BPAResource]&lt;BR /&gt;Table Name for Work Items: Combination of&amp;nbsp;[BPAWorkQueueItem] and&amp;nbsp;[BPAWorkQueue]&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vivek Goel&lt;BR /&gt;RPA Architect&lt;BR /&gt;Asia/Singapore&lt;BR /&gt;+6594554364&lt;BR /&gt;&lt;A href="https://www.rpatools.com/" target="test_blank"&gt;https://www.rpatools.com/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Nov 2019 11:12:00 GMT</pubDate>
    <dc:creator>vivek.kumar.goel</dc:creator>
    <dc:date>2019-11-21T11:12:00Z</dc:date>
    <item>
      <title>SQL Query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53837#M8452</link>
      <description>Hi Team,&lt;BR /&gt;&lt;BR /&gt;How to get the Schedule name, Process name, Resource name and Work Item details by using SQL Query from Blueprism Data base.&lt;BR /&gt;------------------------------&lt;BR /&gt;Narendra Arvapalli&lt;BR /&gt;RPA developer&lt;BR /&gt;Genpact&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------</description>
      <pubDate>Thu, 21 Nov 2019 10:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53837#M8452</guid>
      <dc:creator>NarendraArvapal</dc:creator>
      <dc:date>2019-11-21T10:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53838#M8453</link>
      <description>Table Name for Schedule:&amp;nbsp;[BPASchedule]&lt;BR /&gt;Table Name for Processes:&amp;nbsp;[BPAProcess]&lt;BR /&gt;Table Name for Resource Names:[BPAResource]&lt;BR /&gt;Table Name for Work Items: Combination of&amp;nbsp;[BPAWorkQueueItem] and&amp;nbsp;[BPAWorkQueue]&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vivek Goel&lt;BR /&gt;RPA Architect&lt;BR /&gt;Asia/Singapore&lt;BR /&gt;+6594554364&lt;BR /&gt;&lt;A href="https://www.rpatools.com/" target="test_blank"&gt;https://www.rpatools.com/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Nov 2019 11:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53838#M8453</guid>
      <dc:creator>vivek.kumar.goel</dc:creator>
      <dc:date>2019-11-21T11:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53839#M8454</link>
      <description>Thank you for your response. My requirement is to get &lt;STRONG&gt;Process Name,Resource Name, Resource Status, Start time, End time, Exception reason, Schedule Name. Queue name &amp;amp; No.of Pending items in the Queue&amp;nbsp;&lt;/STRONG&gt;from a sql Query. Can you please suggest an query to get all those details in a table.&lt;BR /&gt;&lt;BR /&gt;I am able to find relationship between [BPASession] and {&lt;SPAN&gt;[BPAProcess] OR&amp;nbsp;[BPAResource]}&lt;/SPAN&gt;&lt;BR /&gt;but i am unable to find relationship between [BPASession] and {[BPASchedule] OR&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;[BPAWorkQueueItem] OR [BPAWorkQueue]}&lt;BR /&gt;&lt;BR /&gt;Below is the query from which I have received some details.&lt;BR /&gt;&lt;BR /&gt;Select TOP 10 BPAResource.name AS System,BPAProcess.name AS [Process Name],BPASession.startdatetime AS [Start Time],BPASession.enddatetime AS [StopTime],BPAStatus.description AS [Status],BPAResource.status AS [Resource Status]&lt;BR /&gt;from BPASession INNER JOIN BPAResource ON BPASession.starterresourceid = BPAResource.resourceid AND &lt;BR /&gt; BPASession.runningresourceid=BPAResource.Resourceid INNER Join BPAProcess On BPASession.processid=BPAProcess.processid &lt;BR /&gt; INNER Join BPAStatus ON BPASession.statusid=BPAStatus.statusid&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Narendra Arvapalli&lt;BR /&gt;RPA developer&lt;BR /&gt;Genpact&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Nov 2019 13:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53839#M8454</guid>
      <dc:creator>NarendraArvapal</dc:creator>
      <dc:date>2019-11-21T13:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53840#M8455</link>
      <description>Has anyone found a solution for this? I am having the same issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you,&amp;nbsp;&lt;BR /&gt;Cory Lavigne&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cory Lavigne&lt;BR /&gt;Staff Analyst&lt;BR /&gt;Gap Inc.&lt;BR /&gt;America/Denver&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Jul 2022 20:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53840#M8455</guid>
      <dc:creator>CoryLavigne</dc:creator>
      <dc:date>2022-07-22T20:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53841#M8456</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="b131e991-f4a1-4c44-8be2-11b522144014" data-tag-text="@Cory Lavigne" href="https://community.blueprism.com/network/profile?UserKey=b131e991-f4a1-4c44-8be2-11b522144014" data-itemmentionkey="773bc0e0-4afe-4a07-9c8a-ca13d0abc834"&gt;@Cory Lavigne&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For the three first fields, here is the query:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT SCHEDULE.name as [Schedule name]
	, PROCESS.name AS [Process name]
	, TASKSESSION.resourcename AS [Resource Name]

FROM BPASchedule SCHEDULE
	INNER JOIN BPATaskSession TASKSESSION ON SCHEDULE.initialtaskid = TASKSESSION.taskid
	INNER JOIN BPAProcess PROCESS ON TASKSESSION.processid = PROCESS.processid&lt;/CODE&gt;&lt;/PRE&gt;
But, I don't understand the part of "Work Item".&lt;BR /&gt;&lt;BR /&gt;What you want to get out is that work item was done by which schedule?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Jul 2022 08:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53841#M8456</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-07-25T08:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53842#M8457</link>
      <description>Hi Narendra,&lt;BR /&gt;&lt;BR /&gt;You can pull the report from the queue&amp;nbsp;&lt;BR /&gt;Step 1: Select any queue&amp;nbsp; item from the respective queue&amp;nbsp;&lt;BR /&gt;Step2:Select all&lt;BR /&gt;Step3:Right Click and select current view as report from DB&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The above report produces the resource name and all&amp;nbsp;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Regards,&lt;BR /&gt;Satish Gunturi&lt;BR /&gt;Senior Consultant&lt;BR /&gt;Ignite IPA Pvt Ltd.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Satish Gunturi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query/m-p/53842#M8457</guid>
      <dc:creator>Satish1414</dc:creator>
      <dc:date>2022-07-25T12:42:00Z</dc:date>
    </item>
  </channel>
</rss>

