<?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 Cleanup unused processes/objects in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Cleanup-unused-processes-objects/m-p/70738#M23343</link>
    <description>HI! Is there a way to identify "unused" processes/objects? E.g. all processes/objects which haven't been executed for x months?</description>
    <pubDate>Fri, 01 Feb 2019 18:44:00 GMT</pubDate>
    <dc:creator>astrid.stollberger</dc:creator>
    <dc:date>2019-02-01T18:44:00Z</dc:date>
    <item>
      <title>Cleanup unused processes/objects</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cleanup-unused-processes-objects/m-p/70738#M23343</link>
      <description>HI! Is there a way to identify "unused" processes/objects? E.g. all processes/objects which haven't been executed for x months?</description>
      <pubDate>Fri, 01 Feb 2019 18:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cleanup-unused-processes-objects/m-p/70738#M23343</guid>
      <dc:creator>astrid.stollberger</dc:creator>
      <dc:date>2019-02-01T18:44:00Z</dc:date>
    </item>
    <item>
      <title>hey guy
No one has responded…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cleanup-unused-processes-objects/m-p/70739#M23344</link>
      <description>hey guy
No one has responded yet.&amp;nbsp; You might not even see this but to the random person stumbling across this forum in the future while trying to solve a similar problem and using the power of google managed to find this page; Hello! I am from the past and I'm here to help.
You'll need access to the back end of the DB or a mirror of it (i.e. the MS SQL that stores everything for the Blue Prism environment you're running)
-- START OF SQL
use XXXXXXXX; -- Replace this with the name of your DB
go
-- First creates a table to query of everything, similar to the control room feed but not limited
with cte_TodaySessionLog as -- First creates a CTE of all session data for processes run today (same as the Control room feed)
(
SELECT
S.SessionID
,S.StartDateTime
,S.EndDateTime
,S.StopRequested
,S.LastUpdated
,S.LastStage
,P.Name as ProcessName
FROM [dbo].[BPASession] as S
inner join [dbo].[BPAProcess] as P
on P.[processid] = S.[processid]
and P.[ProcessType] = 'P' -- only gets processes, not objects but you can remove this line and get both
)
select
TSL.ProcessName
,max(TSL.StartDateTime) as DateLastUsed
from cte_TodaySessionLog as TSL
GROUP BY&amp;nbsp;TSL.ProcessName
;
-- END OF SQL
&amp;nbsp;</description>
      <pubDate>Sun, 28 Apr 2019 04:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cleanup-unused-processes-objects/m-p/70739#M23344</guid>
      <dc:creator>BenKirimlidis</dc:creator>
      <dc:date>2019-04-28T04:25:00Z</dc:date>
    </item>
  </channel>
</rss>

