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