Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: pdavid on May 18, 2007, 04:22:13 PM

Title: Email Alert VB Scripting Question
Post by: pdavid on May 18, 2007, 04:22:13 PM
Is it possible to include the agent's position ID on the alerts?

I'm setup alerts to head to a compliance team after a certain threshold is met/exceeded, in the body I have the username, currentstatvalue, and thresholdexceeded - I'm looking to see if I can get the position ID so these folks will log on to the call and begin monitoring. Any help would be appreciated.
Title: Re: Email Alert VB Scripting Question
Post by: René on May 21, 2007, 07:23:51 AM
Hi,

I don't think it's possible. Take a look to "Reporting 7.2 CCPulse+ Administrator's Guide" for list of available objects and properties.

René
Title: Re: Email Alert VB Scripting Question
Post by: pdavid on May 24, 2007, 12:52:19 PM
Yes that's what I've also been told...I think I'll try building a solution where within the script it will reference a table where it could do a lookup by username and bring back the value, this table will be historical so if a person moves it would not return the accurate position ID, but that's a disclaimer I'll make to the compliance dept. Thanks for your help with this.
Title: Re: Email Alert VB Scripting Question
Post by: vivek on May 25, 2007, 04:46:38 PM
if you do a lookup in a table then it can be done.
Title: Re: Email Alert VB Scripting Question
Post by: omac on June 28, 2007, 02:31:33 PM
Maybe you could try this VB script to enhance yours, It is suing some config objects, you colud try substitute the Agent Login ID:

[font=Courier][size=8pt]'Body of email message
Dim msgBody
Dim thresholdInfo
Dim receipAddress

msgBody="A mail from the CCPulse threshold engine!"+vbNewLine
thresholdInfo="StatValue:"+CStr(Threshold.StatValue)+vbNewLine+"StatAlias:"+CStr(Threshold.StatAlias)+vbNewLine+"CFGTenantDbid:"+CStr(Threshold.CFGTenantDbid)+vbNewLine+"CFGDbid:"+CStr(Threshold.CFGDbid) + vbNewLine + "CFGObjectID:"+CStr(Threshold.CFGObjectID)+vbNewLine+"CFGType:"+CStr(Threshold.CFGType)+vbNewLine
receipAddress="<put email address here>"

'Call our function with recipient, message, and subject
SendMail receipAddress,msgBody+thresholdInfo,"Alarm notification from CCPulse"

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 = olImportanceHigh
objOutlookMsg.Send

Set objOutlookMsg = Nothing
Set objOutlook = Nothing

End Sub[/size][/font]
Title: Re: Email Alert VB Scripting Question
Post by: SorinM on August 11, 2008, 10:36:18 AM
Hello,

I want to send mail from CCPulse and it seems that i can't use Microsoft Outlook because of the security prompts.
So i tried to use Outlook Express. Even if i use Predefined action in CCPulse "SendE-MailwithCDO" or the script provided by Omac i'm getting error like "can't create object" which is MAPI.Session or Outlook Application.

Maybe i should configure somthing in Outlook express...

Please advice me!

Thanks!

Title: Re: Email Alert VB Scripting Question
Post by: CTIgem on August 11, 2008, 12:28:38 PM
I use javamail to send email alert and works pretty good.