" /> is IRD alarm text vbscript? - Genesys CTI User Forum

Author Topic: is IRD alarm text vbscript?  (Read 1640 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
is IRD alarm text vbscript?
« on: February 27, 2018, 01:04:25 PM »
Advertisement
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

Offline water235

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
Re: is IRD alarm text vbscript?
« Reply #1 on: March 01, 2018, 05:32:57 PM »
you can always use ECMA script with IRD.

Thanks,

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Re: is IRD alarm text vbscript?
« Reply #2 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

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: is IRD alarm text vbscript?
« Reply #3 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]]

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Re: is IRD alarm text vbscript?
« Reply #4 on: March 06, 2018, 11:01:44 PM »
thanks, worked great.