[quote author=René link=topic=11455.msg52207#msg52207 date=1570711088]
Hi,
Format of your list object is (if I do understand your description correctly):
Section = [i]type of call[/i]
Key-value pairs
- Key = [i]day of week (0-6)[/i]
- Value = [i]time range (HH:MM-HH:MM)[/i]
Example
[code][InboundCall]
1 = 08:00-17:00
2 = 09:00-17:00
...
[/code]
You should do following to check if current time fits to configured time range or not
block "Function"/
timeRange = ListGetDataCfg[<list object name>,<call type>,Day[]]
block "If" (continue is true)
timeRange != ""
block "Assign" /
tRange1 = StrAsciiTok[timeRange,"-",0]
tRange2 = StrAsciiTok[timeRange,"-",1]
block "If" (fits to time range if true)
tRange1 > Time[] && tRange2 < Time[]
Note - GAX OPM module supports parameter of Schedule type that you can use but GAX stores configured dates & times in different format, so you should check the format and write your own logic to parse it.
R.
[/quote]
Yes you are correct at your understanding. I have question on the recommendation.
1. What would be type for Variable Time Range and tRange1 & tRange2.
2. I have created List objects in CME, How Can I show them under parameters in GAX or I have to create the Parameter Template, Group and Parameters from scratch?
TIMERANGE != "" is showing [b](Error) parse error, bad symbol: '"[/b]
TYA.