" /> Can we write vb script in CCPulse Action Email Subject? - Genesys CTI User Forum

Author Topic: Can we write vb script in CCPulse Action Email Subject?  (Read 1660 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Can we write vb script in CCPulse Action Email Subject?
« on: March 14, 2017, 02:43:08 PM »
Advertisement
Hello,

We have multiple ccpulse thresholds and actions which sent an email alert if the number is exceeded.
an example is acd queue x, which may exceed 10, then 50, 100 and so on.
for every acd queue, we have 10 actions so in total about 100 thresholds and actions.
to reduce the workload required when either an action or threshold needs an update I have tried to use vb scripting to extract the queue and value information.
my question is can the same vbscript be applied to the subject line?  I have tried the same script from the message body but did not work
here is an example.
Set poSendMail = CreateObject("vbSendMail.clsSendMail")
poSendMail.SMTPHost = "Mailhost.uk.pri.test.com"
poSendMail.From = "noreply@noreply.com"
poSendMail.FromDisplayName = "Genesys Alerts"
poSendMail.Recipient = "test.test@test.co.uk"
poSendMail.RecipientDisplayName = "Test Test"
poSendMail.ReplyToAddress = ""
poSendMail.Subject = "Test Email From CCPulse - Please Ignore" [b][color=red]<<<<< can I use vbscript on this line?[/color][/b]
poSendMail.Attachment = ""
poSendMail.Message = "Number of Calls"+vbnewline+CStr(Threshold.StatAlias)+":"+CStr(Threshold.StatValue)
poSendMail.Send
Set poSendMail = Nothing

thanks