Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Grouping Data for Consolidated Notification

 
   Database Forums (Home) -> Notification Services RSS
Next:  Using a Resource as a Class Property  
Author Message
raj

External


Since: Jul 21, 2007
Posts: 2



(Msg. 1) Posted: Sat Jul 21, 2007 11:06 am
Post subject: Grouping Data for Consolidated Notification
Archived from groups: microsoft>public>sqlserver>notificationsvcs (more info?)

We have a requirement where we need to send a single consolidated list
of items belonging to a user which get active on particular date.



So, for example Item 1, Item 2, Item 3 gets active. These entries are
inserted as Events. Now, we need to send single notification to the
user with the email as:

=========================

Dear User,



Your following items got active today:

Item 1

Item 2

Item 3



Thanks,

Customer Care

=========================



For this we set the DigestDelievery to true and the emails indeed were
consolidated. But, what it did was that it send single email
notification repeating the entire content for each item as follows:

=========================

Dear User,



Your following items got active today:

Item 1



Thanks,

Customer Care



Dear User,



Your following items got active today:

Item 2



Thanks,

Customer Care



Dear User,



Your following items got active today:

Item 3



Thanks,

Customer Care

=========================



Please let me know if we are missing any setting or any changes need
to be made in the .xslt for this to work.



regards,

Rajiv

 >> Stay informed about: Grouping Data for Consolidated Notification 
Back to top
Login to vote
Joe Webb1

External


Since: Apr 28, 2004
Posts: 408



(Msg. 2) Posted: Mon Jul 23, 2007 5:18 am
Post subject: Re: Grouping Data for Consolidated Notification [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 21 Jul 2007 11:06:51 -0700, raj wrote:

> We have a requirement where we need to send a single consolidated list
> of items belonging to a user which get active on particular date.
>
>
>
> So, for example Item 1, Item 2, Item 3 gets active. These entries are
> inserted as Events. Now, we need to send single notification to the
> user with the email as:
>
> =========================
>
> Dear User,
>
>
>
> Your following items got active today:
>
> Item 1
>
> Item 2
>
> Item 3
>
>
>
> Thanks,
>
> Customer Care
>
> =========================
>
>
>
> For this we set the DigestDelievery to true and the emails indeed were
> consolidated. But, what it did was that it send single email
> notification repeating the entire content for each item as follows:
>
> =========================
>
> Dear User,
>
>
>
> Your following items got active today:
>
> Item 1
>
>
>
> Thanks,
>
> Customer Care
>
>
>
> Dear User,
>
>
>
> Your following items got active today:
>
> Item 2
>
>
>
> Thanks,
>
> Customer Care
>
>
>
> Dear User,
>
>
>
> Your following items got active today:
>
> Item 3
>
>
>
> Thanks,
>
> Customer Care
>
> =========================
>
>
>
> Please let me know if we are missing any setting or any changes need
> to be made in the .xslt for this to work.
>
>
>
> regards,
>
> Rajiv


Hi Rajiv -

From a SSNS perspective, it sounds like you have everything configured for
digest delivery properly. Since it's not being formatted the way you wish,
the issue is in the content formatter.

If you are using the built-in XSLT content formatter, try adjusting the
XSLTransform document.

Try placing the header and footer text directly in the XSLT document and
the notification data in an <xsl:template> Match on "notification".

HTH...

Joe


--
Joe Webb
SQL Server MVP
http://www.sqlns.com

 >> Stay informed about: Grouping Data for Consolidated Notification 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
database 'DBNAME' is not enabled for SQL cache notification - I'm getting this message on SqlCacheDependencyAdmin.EnableTableForNotifications and aspnet_regsql.exe -C connstr -lt Yet, the following execution has finished successfully: ALTER DATABASE dbname SET ENABLE_BROKER

Application data - where to add - I have read some posts from Joe Webb about how SQL 2005 NS can use existing databases and we can write the NS tables to them. My question is the opposite. I want to take the basic NS application and expand a single table to allow for additional fields...

Client app needs to know when data has changed - Hi all, I am developing a multi user application using Delphi. Currently I am using a database engine that is terrible. I am considering switching over to SQL Server. One of the features that I could really use is for the client applications to be...

Error trying inserting data into notifications view - Hi, I am building a prototype NS app for scheduled notifications. I specified a stored proc in my schedule event rule. To start with I put in a 1 liner insert statement in this sp to insert a record into schedule notifications view with hard coded value...

Receiving notifications from SQL Server 2000 that data cha.. - What is the best way to be notified, from SQL Server 2000, that a row was added, deleted, or modified in another application? I'm a competent C# developer, but a "babe in the woods" when it comes to SQL Server. I have been reading about the...
   Database Forums (Home) -> Notification Services All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]