Get agent events for multiple agents
(fnc_all_agents_events_window)
Please see more information, explanations and examples in ‘Audit log’ – see all events for an agent
Object name | fnc_all_agents_events_window | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Table value function | |||||||||||||||||||||
Description |
Delivers the same information as described for function fnc_agent_events_window above, except that it’s delivered for all agents for a specified customer. Except from the @customer_key parameter which replaces the @agent_id parameter, all other parameters are the same – as well as the returned table. Note: It is very demanding to execute this function (it might take several minutes), so if you have lots of agents, please do not use a longer time period than one hour. Please use “Get agent events for a single agent (fnc_agent_events_window) instead. |
|||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||
Returns |
Returns a table is identical to the one described for fnc_agent_events_window. |
|||||||||||||||||||||
Samples |
Get the events for all agents for customer 12345 between 08:30 and 16:00 on May 2nd 2016:
This is a more advanced query, where we get the duration for any event, per agent and per day, for all agents for customer 12345 between June 3rd and (up to, not included) June 8th. But only between ’08:00’ and ’16:00’ for each of the days. Also the agents table is joined in order to get agent’s name.
|