Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Nathzn on April 18, 2014, 10:54:27 AM

Title: Get StatDay info in IRD
Post by: Nathzn on April 18, 2014, 10:54:27 AM
Hi Everyone,

This is my first time on the forum so hi :)

Basically what I'm trying to do is to get the StatDay endTime into a variable in IRD. This is so I can define certain departments closing early using a list object.

Example being we want to close a specific department 5 minutes early every night

Any help would be greatly appreciated!

Thanks,
Title: Re: Get StatDay info in IRD
Post by: Kubig on April 18, 2014, 11:33:00 AM
Why did you not use standard Calendar within strategy?
Title: Re: Get StatDay info in IRD
Post by: Nathzn on April 18, 2014, 11:46:12 AM
Our goal is to make it dynamic as possible, so if the opening hours changes then it would still work with no work required. Also this may be used for a lot of departments so opening times will completely differ.

Hope I'm making sense here  :)

Thanks,
Title: Re: Get StatDay info in IRD
Post by: Kubig on April 18, 2014, 11:54:25 AM
Oh, yes it makes a sense, but Calendar can be driven by values from ListObject which is dynamic. So, from my point of view is not necessary to use any statistics function within strategy to achieve your need
Title: Re: Get StatDay info in IRD
Post by: Nathzn on April 18, 2014, 01:13:24 PM
Agreed! Very dynamic and appreciated response, however wouldn't that mean if a department requests their Opening hours to be changed both the stat day and list object would have to be changed for it too work?

It's my only possibility at the moment, not sure if my initial question is possible.

Thanks,
Title: Re: Get StatDay info in IRD
Post by: terry on April 18, 2014, 06:43:22 PM
There is no way to get start and end Times into strategies variables (not counting ways to go directly into config database).
You can only check current time against them (IsSpecailDayEx function).
If it is not what needed then approcahes like using List objects are probably way to go (without any using of Statdays).
Title: Re: Get StatDay info in IRD
Post by: Nathzn on April 22, 2014, 08:55:40 AM
Thank you both Kubig and Terry!

You have helped me save some time here! :)