Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Notification Email
Last Post 01/18/2012 2:10 PM by Peter Donker. 6 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Steve
New Member
New Member
Posts:2


--
01/04/2012 1:20 AM
We're running version 6.01 and noticed that when a document is added to DMX, subscribers are getting an email that indicates that this document has been added, approved, deleted, downloaded, etc ...

meaning that the email triggered too doc statuses that do not apply.

For example:

Document 1
was added by . . on Tuesday, January 03, 2012

Document 1
was added by . . on Tuesday, January 03, 2012

Document 1
was approved by . . on Tuesday, January 03, 2012

Document 1
was approved by . . on Tuesday, January 03, 2012

Document 1
was deleted by . . on Tuesday, January 03, 2012

Document 1
was deleted by . . on Tuesday, January 03, 2012

Etc...

Any thoughts as to how we can clean this up?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/09/2012 10:46 AM
Hi Steve,

This has just been discovered and solved. Please run the following under host > SQL to fix immediately:

IF EXISTS (select * from {databaseOwner}sysobjects where id = object_id(N'{objectQualifier}vw_DMX_Notifications') and OBJECTPROPERTY(id, N'IsView') = 1)
DROP VIEW {databaseOwner}{objectQualifier}vw_DMX_Notifications
GO

CREATE VIEW {databaseOwner}{objectQualifier}vw_DMX_Notifications
AS
SELECT
n.LogId,
n.PortalId,
n.Sent,
n.Template,
n.UserId AS RecipientUserId,
l.Action,
l.Datime,
l.EntryId,
l.UserId,
lt.ResourceFile,
lt.AttachFile,
lt.CustomSend,
lt.NotifyApprovers,
lt.NotifyAudit,
lt.NotifyEditors,
lt.NotifyOwner,
lt.NotifySelf,
lt.NotifySubscribers,
lt.LogTypeKey
FROM {databaseOwner}{objectQualifier}DMX_Log l
INNER JOIN {databaseOwner}{objectQualifier}DMX_LogTypes lt ON l.PortalId = lt.PortalId AND l.Action=lt.LogTypeKey
INNER JOIN {databaseOwner}{objectQualifier}DMX_Notifications n ON l.LogId = n.LogId

GO

IF EXISTS (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}DMX_GetNotification') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE {databaseOwner}{objectQualifier}DMX_GetNotification
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}DMX_GetNotification
@LogId INT,
@UserId INT
AS

SELECT
*
FROM
{databaseOwner}{objectQualifier}vw_DMX_Notifications
WHERE
[LogId] = @LogId
AND [RecipientUserId] = @UserId
GO

IF EXISTS (select * from dbo.sysobjects where id = object_id(N'{objectQualifier}DMX_GetUnsentNotifications') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE {databaseOwner}{objectQualifier}DMX_GetUnsentNotifications
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}DMX_GetUnsentNotifications
@PortalId int,
@UserId Int
AS

SELECT
*
FROM
{databaseOwner}{objectQualifier}vw_DMX_Notifications
WHERE
[RecipientUserId] = @UserId
AND [PortalId] = @PortalId
AND [Sent] IS NULL

GO


Steve
New Member
New Member
Posts:2


--
01/09/2012 8:42 PM
Problem fixed. Thank you for posting the solution.

Steve
Sam Bonsett
New Member
New Member
Posts:2


--
01/11/2012 1:14 AM
Yes this fixed it for me but I'm getting tons of notifications for the same event. How do I stop them?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/13/2012 2:59 PM
I'll have a fix out by Monday. For now you can do the following: switch off the Notification engine by disabling the task under Host > Schedule or periodically run this: UPDATE DMX_Notifications SET Sent=GETDATE(). The latter makes DMX believe all notifications have been sent.

Peter
brian
New Member
New Member
Posts:2


--
01/17/2012 6:22 AM
new install of latest version, and i'm having the same/similar issues:
approved documents email keeps repeating...when i look in the notifications table the "sent" date is not getting updated, its null.

There was a fix mentioned - will there be a notice posted in the forums when it is available?
thx
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/18/2012 2:10 PM
It has just been released ... DMX 06.00.02
You are not authorized to post a reply.