" /> Last Login report - Genesys CTI User Forum

Author Topic: Last Login report  (Read 936 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Last Login report
« on: June 27, 2023, 11:14:30 AM »
Advertisement
Hello,
i want to use ICON or infomart to produce a report on last login for agents so we know if their genesys account has been in use for a period of time.
is there a way and where is it described or documented?
i am aware we can enable last-login options in confserv and extract this from the relevant table but want to use infomart if possible.

regards

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Last Login report
« Reply #1 on: June 27, 2023, 01:35:06 PM »
I dare say that this is not a good idea. The login-session table of InfoMart is not structured or indexed for that kind of query and this might take lots of resources of the DBMS, or the query might timeout, or take a loooot of time to return.

If still you want to try, I believe it would be something similar to this (assuming oracle dbms):


Select r.employee_id as employee_id, to_char(max(to_date('1970-01-01','yyyy-mm-dd') + srsf.start_ts/86400 + dt.label_tz/24),'dd/mm/yyyy hh24:mi:ss') as last_login
from sm_res_session_fact srsf
inner join resource_ r on r.resource_key = srsf.resource_key
inner join date_time dt on dt.date_time_key = srsf.start_date_time_key
group by r.employee_id
order by 1 asc
« Last Edit: June 27, 2023, 03:18:17 PM by hsujdik »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Last Login report
« Reply #2 on: June 27, 2023, 10:48:23 PM »
Maybe use statserver tables?

Enviado de meu SM-N9600 usando o Tapatalk