<?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: Session's last update time from Runetime Resource command in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80714#M32394</link>
    <description>As far as I know, there's no command to do exactly what you're asking for, but there's a close enough workaround that should be good enough for you.&lt;BR /&gt;&lt;BR /&gt;Depending on the version of Blue Prism you're using, you may or may not have all the below commands, especially /resourcestatus, which I believe was added sometime between 6.6 and 6.8 or so. But the other commands should work. The problem is that without the /resourcestatus command, you may have a hard time getting the sessionid. So, just a quick suggestion there, you could have the Blue Prism process output its own sessionid somewhere after retrieving it with GetSessionId() in a calc stage.&lt;BR /&gt;&lt;BR /&gt;Anyway, assuming you're on a newer version of Blue Prism, try commands like these (i'll give a couple examples with different parameters).&lt;BR /&gt;&lt;BR /&gt;First this to get the list of sessions:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;AutomateC /resourcestatus All /user Daffy DaffysPassword&lt;/LI&gt;
&lt;LI&gt;AutomateC /resourcestatus PC001 10 m /sso&lt;/LI&gt;
&lt;/UL&gt;
That will output Resource Name, Session ID, Status, Start Time, and End Time for every session within the time frame.&amp;nbsp;&lt;BR /&gt;Then using one of those session IDs, use one of these commands:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;AutomateC /getlog a9b04a03-74cf-43a3-8a01-b95177f517f3 /user Daffy DaffysPassword&lt;/LI&gt;
&lt;LI&gt;AutomateC /getlog a9b04a03-74cf-43a3-8a01-b95177f517f3 /sso&lt;/LI&gt;
&lt;/UL&gt;
That will output the session log which includes the names of stages. You could then just get the last line from the log to use as your 'latest stage' kind of thing. Note that I do not think that the last line in that log necessarily will equal the latest stage. I think the Latest Stage shown in Control Room is actually the latest stage at the time it was last refreshed, whereas the log you retrieve is the session log, which is limited by stage logging settings. If all logging is turned off, then I assume you'd receive nothing back in that /getlog command.&lt;BR /&gt;&lt;BR /&gt;Here's an example output I get from a random session I ran a while back. I used the /getlog command just now and got this as an output:&lt;BR /&gt;2018-07-14 15:03:46,00000000-0000-0000-0000-000000000000,,Created session log&lt;BR /&gt;2018-07-14 15:03:46,14164c13-322b-4bff-a343-c402d3a1f91f,Start,&lt;BR /&gt;2018-07-14 15:03:46,99716e31-6732-4388-9329-8367d3f6ba82,Launch Facebook,&lt;BR /&gt;2018-07-14 15:03:50,b250dcdc-2c31-476b-939c-ee6f933f852e,Navigate to About,&lt;BR /&gt;2018-07-14 15:03:54,2732a0fc-d899-4a19-8dfb-fc9807f6141d,Get Mission Value,&lt;BR /&gt;2018-07-14 15:03:54,50158602-9382-44a3-a8fc-fc48ec296acd,Close IE,&lt;BR /&gt;2018-07-14 15:03:55,34232fb3-d8e2-4527-8ca0-3f7f27c8723b,Mission Value Changed?,False&lt;BR /&gt;2018-07-14 15:03:55,2d50385f-4035-47f6-a8e4-66427c9dc980,End,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 03 Dec 2020 21:15:00 GMT</pubDate>
    <dc:creator>david.l.morris</dc:creator>
    <dc:date>2020-12-03T21:15:00Z</dc:date>
    <item>
      <title>Session's last update time from Runetime Resource command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80713#M32393</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a way to get session's last update time (and maybe last stage) from some Runetime Resource command? Unfortunately I did not find anything like that. I'm not interest to take it directly from database due to lack of direct access.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tomasz Sukiennik&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Teammates&lt;BR /&gt;Europe/Lodz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Dec 2020 08:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80713#M32393</guid>
      <dc:creator>toms1985</dc:creator>
      <dc:date>2020-12-03T08:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Session's last update time from Runetime Resource command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80714#M32394</link>
      <description>As far as I know, there's no command to do exactly what you're asking for, but there's a close enough workaround that should be good enough for you.&lt;BR /&gt;&lt;BR /&gt;Depending on the version of Blue Prism you're using, you may or may not have all the below commands, especially /resourcestatus, which I believe was added sometime between 6.6 and 6.8 or so. But the other commands should work. The problem is that without the /resourcestatus command, you may have a hard time getting the sessionid. So, just a quick suggestion there, you could have the Blue Prism process output its own sessionid somewhere after retrieving it with GetSessionId() in a calc stage.&lt;BR /&gt;&lt;BR /&gt;Anyway, assuming you're on a newer version of Blue Prism, try commands like these (i'll give a couple examples with different parameters).&lt;BR /&gt;&lt;BR /&gt;First this to get the list of sessions:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;AutomateC /resourcestatus All /user Daffy DaffysPassword&lt;/LI&gt;
&lt;LI&gt;AutomateC /resourcestatus PC001 10 m /sso&lt;/LI&gt;
&lt;/UL&gt;
That will output Resource Name, Session ID, Status, Start Time, and End Time for every session within the time frame.&amp;nbsp;&lt;BR /&gt;Then using one of those session IDs, use one of these commands:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;AutomateC /getlog a9b04a03-74cf-43a3-8a01-b95177f517f3 /user Daffy DaffysPassword&lt;/LI&gt;
&lt;LI&gt;AutomateC /getlog a9b04a03-74cf-43a3-8a01-b95177f517f3 /sso&lt;/LI&gt;
&lt;/UL&gt;
That will output the session log which includes the names of stages. You could then just get the last line from the log to use as your 'latest stage' kind of thing. Note that I do not think that the last line in that log necessarily will equal the latest stage. I think the Latest Stage shown in Control Room is actually the latest stage at the time it was last refreshed, whereas the log you retrieve is the session log, which is limited by stage logging settings. If all logging is turned off, then I assume you'd receive nothing back in that /getlog command.&lt;BR /&gt;&lt;BR /&gt;Here's an example output I get from a random session I ran a while back. I used the /getlog command just now and got this as an output:&lt;BR /&gt;2018-07-14 15:03:46,00000000-0000-0000-0000-000000000000,,Created session log&lt;BR /&gt;2018-07-14 15:03:46,14164c13-322b-4bff-a343-c402d3a1f91f,Start,&lt;BR /&gt;2018-07-14 15:03:46,99716e31-6732-4388-9329-8367d3f6ba82,Launch Facebook,&lt;BR /&gt;2018-07-14 15:03:50,b250dcdc-2c31-476b-939c-ee6f933f852e,Navigate to About,&lt;BR /&gt;2018-07-14 15:03:54,2732a0fc-d899-4a19-8dfb-fc9807f6141d,Get Mission Value,&lt;BR /&gt;2018-07-14 15:03:54,50158602-9382-44a3-a8fc-fc48ec296acd,Close IE,&lt;BR /&gt;2018-07-14 15:03:55,34232fb3-d8e2-4527-8ca0-3f7f27c8723b,Mission Value Changed?,False&lt;BR /&gt;2018-07-14 15:03:55,2d50385f-4035-47f6-a8e4-66427c9dc980,End,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Dec 2020 21:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80714#M32394</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-12-03T21:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Session's last update time from Runetime Resource command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80715#M32395</link>
      <description>Thanks Dave, I know this solution, but I am afraid that with processes with a large number of logs, frequent queries to the database may be too expensive. Anyway, it's the best solution at this moment.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tomasz Sukiennik&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Teammates&lt;BR /&gt;Europe/Lodz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2020 10:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Session-s-last-update-time-from-Runetime-Resource-command/m-p/80715#M32395</guid>
      <dc:creator>toms1985</dc:creator>
      <dc:date>2020-12-09T10:07:00Z</dc:date>
    </item>
  </channel>
</rss>

