RaiseNotification

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Messages >

RaiseNotification

available from build: 20230222

Description

This command sends a notification to the current user or to a specific DBWARM user/group.

Syntax

call DBWShell("RaiseNotification Message [UserNamme]")

Parameters

Message

the content of the notification

UserName

Optional. If specified, the notification will be sent to such user, otherwise it will be sent to the current user that is running the script.
If the name of a DBWARM Group is specified in this parameter, a notification will be sent to all the users belonging to such group.

Remarks

This command is very similar to the SendNotificationMessageToUser but with no User Interface parameters.

Example .NET

Set pDBWInit = CreateObject("MwPDMApi.Initialize")

Set pDBWAppl = pDBWInit.StartConnection(DBWorksApplicationName)
pDBWAppl.Messages.RaiseNotification(notificationMessage)

Example .vbs

Sub main()

 DBWInit(TRUE)
 DBWShell("RaiseNotification " & chr(34) & "notification text" & chr(34) & " " & chr(34) & "User Name" & chr(34))
End Sub