<?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 - how to find future schedules in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55614#M9927</link>
    <description>I have wondered how to generate the information the same as the Control - Timetables information such as the default 'Today &amp;amp; Tomorrow'.&amp;nbsp; &amp;nbsp;I ran the query as above and there was missing data and no data for schedules that are hourly.&amp;nbsp; &amp;nbsp; There were no future runs in the results either.&amp;nbsp; &amp;nbsp;Are we sure about the query?&amp;nbsp; &amp;nbsp;I ran this to only look for non-retired schedules:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SELECT &lt;BR /&gt;[scheduleid],&lt;BR /&gt;[name],&lt;BR /&gt;[period],&lt;BR /&gt;[startdate],&lt;BR /&gt;[enddate],&lt;BR /&gt;[startpoint],&lt;BR /&gt;[endpoint]&lt;BR /&gt;FROM [BPAScheduleTrigger] JOIN [BPASchedule] ON (BPAScheduleTrigger.scheduleid = BPASchedule.id) &lt;BR /&gt;WHERE [BPASchedule].retired = 0&lt;BR /&gt;ORDER BY [startdate] DESC, [name]&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Brenton Westwood&lt;BR /&gt;Systems Analyst&lt;BR /&gt;Southern Company&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 31 Aug 2020 20:41:00 GMT</pubDate>
    <dc:creator>bjwestwo</dc:creator>
    <dc:date>2020-08-31T20:41:00Z</dc:date>
    <item>
      <title>SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55611#M9924</link>
      <description>Hi,&lt;BR /&gt;I was able to find that BPAScheduleLog holds schedule that already started, but which table in DB hold the "calendar" of future schedules</description>
      <pubDate>Fri, 28 Aug 2020 08:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55611#M9924</guid>
      <dc:creator>MarekPawlowski</dc:creator>
      <dc:date>2020-08-28T08:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55612#M9925</link>
      <description>&lt;P&gt;Hey Marek,&lt;BR /&gt;&lt;BR /&gt;Are you looking to figure out when schedules will be triggered? If so, BPAScheduleTrigger is where you can find all available schedules. If you are specifically looking to filter only future schedules, you will need to write a query to join information from BPASchedule and BPAScheduleTrigger.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Madhur Chopra&lt;BR /&gt;Sr. Product Consultant&lt;BR /&gt;Blue Prism - Professional Services&lt;BR /&gt;America/Los_Angeles&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Aug 2020 01:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55612#M9925</guid>
      <dc:creator>MadhurChopra</dc:creator>
      <dc:date>2020-08-29T01:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55613#M9926</link>
      <description>Thanks for hint, it is simple but looks like this&lt;BR /&gt;SELECT TOP (1000)&lt;BR /&gt;[scheduleid]&lt;BR /&gt;,[name]&lt;BR /&gt;,[period]&lt;BR /&gt;,[startdate]&lt;BR /&gt;,[enddate]&lt;BR /&gt;,[startpoint]&lt;BR /&gt;,[endpoint]&lt;BR /&gt;FROM [BPAScheduleTrigger] JOIN [BPASchedule] ON (BPAScheduleTrigger.scheduleid = BPASchedule.id)&lt;BR /&gt;&lt;BR /&gt;where startdate &amp;gt; '2020-08-30'&lt;BR /&gt;order by startdate desc&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Marek Pawlowski&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Workforce&lt;BR /&gt;Europe/Warsaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2020 12:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55613#M9926</guid>
      <dc:creator>MarekPawlowski</dc:creator>
      <dc:date>2020-08-31T12:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55614#M9927</link>
      <description>I have wondered how to generate the information the same as the Control - Timetables information such as the default 'Today &amp;amp; Tomorrow'.&amp;nbsp; &amp;nbsp;I ran the query as above and there was missing data and no data for schedules that are hourly.&amp;nbsp; &amp;nbsp; There were no future runs in the results either.&amp;nbsp; &amp;nbsp;Are we sure about the query?&amp;nbsp; &amp;nbsp;I ran this to only look for non-retired schedules:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SELECT &lt;BR /&gt;[scheduleid],&lt;BR /&gt;[name],&lt;BR /&gt;[period],&lt;BR /&gt;[startdate],&lt;BR /&gt;[enddate],&lt;BR /&gt;[startpoint],&lt;BR /&gt;[endpoint]&lt;BR /&gt;FROM [BPAScheduleTrigger] JOIN [BPASchedule] ON (BPAScheduleTrigger.scheduleid = BPASchedule.id) &lt;BR /&gt;WHERE [BPASchedule].retired = 0&lt;BR /&gt;ORDER BY [startdate] DESC, [name]&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Brenton Westwood&lt;BR /&gt;Systems Analyst&lt;BR /&gt;Southern Company&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2020 20:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55614#M9927</guid>
      <dc:creator>bjwestwo</dc:creator>
      <dc:date>2020-08-31T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55615#M9928</link>
      <description>Note that this query appears to show the past runs but I do not see any future runs in the BPAScheduleTrigger table.&amp;nbsp; &amp;nbsp;I do see the past runs in the Log table such as using this query:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SELECT [scheduleid]&lt;BR /&gt;,[name]&lt;BR /&gt;,[instancetime]&lt;BR /&gt;,[firereason]&lt;BR /&gt;,[servername]&lt;BR /&gt;,[heartbeat]&lt;BR /&gt;FROM [BPAScheduleLog] JOIN [BPASchedule] ON (BPAScheduleLog.scheduleid = BPASchedule.id) &lt;BR /&gt;WHERE [BPASchedule].retired = 0&lt;BR /&gt;ORDER BY [instancetime] DESC, [name]&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Brenton Westwood&lt;BR /&gt;Systems Analyst&lt;BR /&gt;Southern Company&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2020 20:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55615#M9928</guid>
      <dc:creator>bjwestwo</dc:creator>
      <dc:date>2020-08-31T20:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55616#M9929</link>
      <description>To be honest I have the same on another environment....&lt;BR /&gt;Dont know how to deal with it, not everything is showing or not even one future schedule...&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Marek Pawlowski&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Workforce&lt;BR /&gt;Europe/Warsaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Sep 2020 12:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55616#M9929</guid>
      <dc:creator>MarekPawlowski</dc:creator>
      <dc:date>2020-09-03T12:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55617#M9930</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="bd4cf02f-610c-4ff7-b2af-eb1e6af9398d" data-tag-text="@Madhur Chopra" href="https://community.blueprism.com/network/profile?UserKey=bd4cf02f-610c-4ff7-b2af-eb1e6af9398d" data-itemmentionkey="7fd2cb92-cdf1-4c0d-a9a6-35f2f776180f"&gt;@Madhur Chopra&lt;/A&gt; ​Is there some stored procedure that needs to be called to generate a list of future schedule runs like is shown in the Control Room - Timetables schedule such as the default "Today and Tomorrow" timetable?&amp;nbsp; &amp;nbsp;I looked in the Programmability folder on the SQL Server for the Blue Prism database using a SA account and did not see one but it would seem there must be one or some code used to generate a future schedule list.&amp;nbsp; &amp;nbsp;Please let us know how we may be able to generate such a list because it would be cool.&amp;nbsp; &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Brenton Westwood&lt;BR /&gt;Systems Analyst&lt;BR /&gt;Southern Company&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Sep 2020 13:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55617#M9930</guid>
      <dc:creator>bjwestwo</dc:creator>
      <dc:date>2020-09-03T13:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: SQL Query - how to find future schedules</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55618#M9931</link>
      <description>I ran SQL profiler while opening Control Room; it seems the time table is not being calculated via SQL. Blue Prism queries the BPAScheduleTrigger table, and I believe it's calculating the Timetables view based on that.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Sep 2020 14:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SQL-Query-how-to-find-future-schedules/m-p/55618#M9931</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-09-04T14:56:00Z</dc:date>
    </item>
  </channel>
</rss>

