<?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 How to extract the existing Schedules for each bots from BP databases? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101140#M48205</link>
    <description>​​​Hi Team,&lt;BR /&gt;&lt;BR /&gt;We need a data in below format to extract from BP Database (as already scheduled in BP Control room for an existing bots) &lt;BR /&gt;Can you please hep us, what is the syntax/Script/query to extract from BP database.&lt;BR /&gt;&lt;BR /&gt;Opp name&amp;nbsp;&amp;nbsp;&amp;nbsp;Username&amp;nbsp;&amp;nbsp;&amp;nbsp;Machine hostname&amp;nbsp;&amp;nbsp;&amp;nbsp;Start time&amp;nbsp;&amp;nbsp;&amp;nbsp; End time&amp;nbsp;&amp;nbsp; Frequency&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Kalaiventhan</description>
    <pubDate>Mon, 23 Aug 2021 05:26:57 GMT</pubDate>
    <dc:creator>KalaiventhanLAK</dc:creator>
    <dc:date>2021-08-23T05:26:57Z</dc:date>
    <item>
      <title>How to extract the existing Schedules for each bots from BP databases?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101140#M48205</link>
      <description>​​​Hi Team,&lt;BR /&gt;&lt;BR /&gt;We need a data in below format to extract from BP Database (as already scheduled in BP Control room for an existing bots) &lt;BR /&gt;Can you please hep us, what is the syntax/Script/query to extract from BP database.&lt;BR /&gt;&lt;BR /&gt;Opp name&amp;nbsp;&amp;nbsp;&amp;nbsp;Username&amp;nbsp;&amp;nbsp;&amp;nbsp;Machine hostname&amp;nbsp;&amp;nbsp;&amp;nbsp;Start time&amp;nbsp;&amp;nbsp;&amp;nbsp; End time&amp;nbsp;&amp;nbsp; Frequency&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Kalaiventhan</description>
      <pubDate>Mon, 23 Aug 2021 05:26:57 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101140#M48205</guid>
      <dc:creator>KalaiventhanLAK</dc:creator>
      <dc:date>2021-08-23T05:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the existing Schedules for each bots from BP databases?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101141#M48206</link>
      <description>You can get an overview of scheduled tasks with a query such as this. Note this query excludes all but minutely and hourly schedules (unittype).&lt;BR /&gt;
&lt;PRE class="language-sql"&gt;&lt;CODE&gt;SELECT
s.[name] AS schedule,
tk.[name] AS task,
p.[name] AS process,
ts.resourceName AS [resource],
tr.[period] * CASE tr.unittype WHEN 6 THEN 60 WHEN 1 THEN 60*60 ELSE 0 END AS frequencyMinutes,
tr.startdate,
DATEPART(minute, tr.startdate) AS startTimeOffsetMinutes,
CONVERT(varchar, DATEADD(s, tr.startpoint, 0), 114) AS activePeriodStartTime,
CONVERT(varchar, DATEADD(s, tr.endpoint, 0), 114) AS activePeriodEndTime
FROM BPASchedule s
INNER JOIN BPAScheduleTrigger tr ON s.ID=tr.scheduleID
INNER JOIN BPATask tk ON s.ID = tk.scheduleID
INNER JOIN BPATaskSession ts ON tk.ID = ts.taskID
INNER JOIN BPAProcess p ON ts.processID = p.processID
WHERE tr.usertrigger=1 AND tr.mode=1 AND tr.unittype in (1, 6)
ORDER BY s.[name], tk.[name​]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;And something like this can give you information on how sessions ran.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-sql"&gt;&lt;CODE&gt;SELECT sessionnumber, processname, runningresourcename,  startdatetime, enddatetime, t.[description] AS [status]
FROM BPVSessioninfo s
INNER JOIN BPAStatus t ON s.statusid=t.statusid
ORDER BY sessionnumber DESC​&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:59:16 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101141#M48206</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-08-23T16:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the existing Schedules for each bots from BP databases?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101142#M48207</link>
      <description>&lt;EM&gt;&lt;STRONG&gt;AutomateC.exe /sso /viewschedreport { days } { date } /dbconnname { database } /format csv&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This should give you a report directly when called from CMD.&lt;/STRONG&gt;&lt;/EM&gt;</description>
      <pubDate>Thu, 02 Sep 2021 09:12:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-extract-the-existing-Schedules-for-each-bots-from-BP/m-p/101142#M48207</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-09-02T09:12:54Z</dc:date>
    </item>
  </channel>
</rss>

