Hello,
I am trying to set up a CCPulse email action whereby a campaign activation and deactivated is emailed to specific distribution list.
The threshold is already available (out of box) however I want to be able to show the campaign name in the email action.
Threshold is :
[i]if Threshold.StatValue = StatAction.SCMPAStatusActivated then
Threshold.Result = true
end if[/i]
Email Action (example):
[i]' Software Requirements:
' Send email by using Microsoft Outlook 98
'This script using Microsoft Outlook object architecture
'Body of email message
Dim msgBody
Dim thresholdInfo
Dim receipAddress
msgBody="A mail from the CCPulse threshold engine!"+vbNewLine
thresholdInfo="Campaign Activated : "+CStr(Threshold.StatValue)+vbNewLine
receipAddress="firstname.lastname@company.com"
'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[/i]
The end result shows an integer value within the email.
What Can I use instead of Threshold.StatValue to display the campaign name?
Thanks,.