Description

Send a Notification to an External email address

A Log file is generated if a LogIdentifier is provided, no log file is created if the LogIdentifier is Nothing. Please see Log Files for more information

Syntax

Sub SendExternalNotification(userID as integer, objVer as ObjVer, MessageTemplate as string, sendTo as string, LogIdentifier As Object

Parameters

Name

Data Type

Description

userID

integer

ID of current M-Files user

objVer

objVer

ObjVer of the object being processed. This can be provided by the event handler or created dynamically using CreateObject("MFilesAPI,ObjVer")

MessageTemplate

string

Name of the Template to use for the notification message

sendTo

string

The Email address to send the Notification to

LogIdentifier

String or TypedValue

Used to determine the filename of the log file. To create a log file for the current activity pass in the provided ActivityID. If this parameter is Nothing, then no log file is generated.

Return

None

Example

'create PentagonDOCS Notification object

Set ExDOCSNotification = GetExtensionObject("PentagonDOCS.Notifications")


'call SendExternalNotification

ExDOCSNotification.SendExternalNotification CurrentUserID.Value, objVer, "default", "exampleNotification@Pentagon.co.uk", ActivityID