Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: PFCCWA on February 27, 2018, 01:04:25 PM

Title: is IRD alarm text vbscript?
Post by: PFCCWA on February 27, 2018, 01:04:25 PM
hello,
I am setting up a routing alarm in IRD strategy and wanted to check if the text is vbscript or if not what language.
Looking at an existing one, it contains 'Cat' function but this is available in options of function block.  Only other option seems to be using space key until the next bit of text is on a new line..
the purpose is to make the alarm reaction email more readable than a single line with multiple data.

thanks
Title: Re: is IRD alarm text vbscript?
Post by: water235 on March 01, 2018, 05:32:57 PM
you can always use ECMA script with IRD.

Thanks,
Title: Re: is IRD alarm text vbscript?
Post by: PFCCWA on March 06, 2018, 04:19:03 PM
[quote author=water235 link=topic=10885.msg49434#msg49434 date=1519925577]
you can always use ECMA script with IRD.

Thanks,
[/quote]

I have tried to do this but not getting anywhere.
My current alarm script is as follows (function block in IRD)

Alarm[22001,Cat['Call ',Var_ConnID,' Has Default Routed',' Cause: NO SKILL','Var1=',Var_Var1,'Var2=',Var_Var2, 'Time=',strUTCTime]]

How do I add I line breaks so the alarm reaction email will be something like this:

[b]Alarm Reaction: Call 00a702b316765432 Has Default Routed Cause: NO SKILL
Var1=Var1
Var2=Var2
Time=2018-03-06T15:44:29Z[/b]

thanks
Title: Re: is IRD alarm text vbscript?
Post by: terry on March 06, 2018, 05:51:06 PM
Something like that probably (function Char[code1, code2, ...] return string composed from provided ascii codes):

Alarm[22001,Cat['Call ',Var_ConnID,' Has Default Routed',' Cause: NO SKILL', Char[13, 10],'Var1=',Var_Var1,Char[13, 10], 'Var2=',Var_Var2, Char[13, 10], 'Time=',strUTCTime]]
Title: Re: is IRD alarm text vbscript?
Post by: PFCCWA on March 06, 2018, 11:01:44 PM
thanks, worked great.