" /> Get StatDay info in IRD - Genesys CTI User Forum

Author Topic: Get StatDay info in IRD  (Read 3908 times)

Offline Nathzn

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Get StatDay info in IRD
« on: April 18, 2014, 10:54:27 AM »
Advertisement
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,

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Get StatDay info in IRD
« Reply #1 on: April 18, 2014, 11:33:00 AM »
Why did you not use standard Calendar within strategy?

Offline Nathzn

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: Get StatDay info in IRD
« Reply #2 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,

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Get StatDay info in IRD
« Reply #3 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

Offline Nathzn

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: Get StatDay info in IRD
« Reply #4 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,

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Get StatDay info in IRD
« Reply #5 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).

Offline Nathzn

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: Get StatDay info in IRD
« Reply #6 on: April 22, 2014, 08:55:40 AM »
Thank you both Kubig and Terry!

You have helped me save some time here! :)