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
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.
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
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.
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).