Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Michael on February 14, 2014, 02:54:44 PM

Title: CCPulse E-Mail Alert
Post by: Michael on February 14, 2014, 02:54:44 PM
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
Title: Re: CCPulse E-Mail Alert
Post by: pdavid 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.