" /> CCPulse E-Mail Alert - Genesys CTI User Forum

Author Topic: CCPulse E-Mail Alert  (Read 2770 times)

Offline Michael

  • Jr. Member
  • **
  • Posts: 50
  • Karma: -1
CCPulse E-Mail Alert
« on: February 14, 2014, 02:54:44 PM »
Advertisement
I did some searching and found a few threads about email alerts in CCPulse but nothing specific to this. So, if I missed that thread, please forgive me.

I am trying to generate a threshold / action combination that will generate a SINGLE e-mail alert when a specific agent group has >0 agents in a logged out status. Currently, I have e-mail alerts for this agent group but I receive one e-mail per agent not logged in but only want one e-mail for the entire group.

I have tried variations of this code for the threshold without success.

' Threshold will be true when agent reach exact
' status Logged Out

if (Threshold.StatValue = StatAction.SDNALoggedOut) >=1  then
  Threshold.Result = true
end if

This is my current email script.

'Body of email message

Dim msgBody

Dim thresholdInfo

Dim receipAddress

msgBody="There are Auto-Login Agent(s) that are not logged in."

receipAddress="email@email.com"

'Call our function with recipient, message, and subject

SendMail receipAddress,msgBody+thresholdInfo,"CCPulse Alarm Notification"

Sub SendMail(recipient,msg,subject)

Dim objOutlook

Dim objOutlookMsg

Set objOutlook = CreateObject( "Outlook.Application" )

Set objOutlookMsg = objOutlook.CreateItem(olMailItem)

objOutlookMsg.To = recipient

objOutlookMsg.Subject = subject

objOutlookMsg.Body = msg

objOutlookMsg.Importance = 2

objOutlookMsg.Send

Set objOutlookMsg = Nothing

Set objOutlook = Nothing

End Sub

Any suggestions are appreciated.

Thanks.
Mike

Offline pdavid

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 1
Re: CCPulse E-Mail Alert
« Reply #1 on: March 11, 2014, 01:50:21 PM »
I don't think there's an error with the action email script, why don't you set the threshold/action on a 'group of agents' template, you'll need to add a new stat like # of agents logged in, and set threshold, where if this field = 0, then send the email.