|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Messages > RaiseNotification |
available from build: 20230222 |
This command sends a notification to the current user or to a specific DBWARM user/group.
call DBWShell("RaiseNotification Message [UserNamme]")
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. |
This command is very similar to the SendNotificationMessageToUser but with no User Interface parameters.
Set pDBWInit = CreateObject("MwPDMApi.Initialize")
Set pDBWAppl = pDBWInit.StartConnection(DBWorksApplicationName)
pDBWAppl.Messages.RaiseNotification(notificationMessage)
Sub main()
DBWInit(TRUE)
DBWShell("RaiseNotification " & chr(34) & "notification text" & chr(34) & " " & chr(34) & "User Name" & chr(34))
End Sub