Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Fire event on new discussion item

  Asked By: Grace    Date: Jun 24    Category: Sharepoint    Views: 15557

Is there an event fired when a new discussion item or a reply is posted in SPS 2003 ?



11 Answers Found

Answer #1    Answered By: Emmett Hyde     Answered On: Jun 24

In SharePoint v.2, events are only for document libraries.

Answer #2    Answered By: Michelle White     Answered On: Jun 24

I know this is possible in SPS 2007 and events are only for doc libraries in SPS 2003.

Let me put my question in a different way. Requirement is to send an email to a bunch of people when a new discussion  item is added or somebody has posted  a reply. Kind of an "Alert" mechanism on the discussion list.

Do I need to write a "Windows Service" application for this using SharePoint OM? How is it doable?

Answer #3    Answered By: Sheena Ray     Answered On: Jun 24

Discussions items are list items and only Ducument Libraries can have Event Handlers in 2003.

Answer #4    Answered By: Jaime Weaver     Answered On: Jun 24

No, in WSS v2 there are only events on Document Libraries.

Answer #5    Answered By: Damon Garner     Answered On: Jun 24

Since we cannot have event  handler in discussion  boards in SPS 2003, is it safe to tell the client that the following requirement is impossible to implement.

"To send an email to a group of users, when a new discussion item  is added to the discussion board. Similar to 'Alert' functionality."

Answer #6    Answered By: Karla Morrison     Answered On: Jun 24

Why not simply use the built-in alert capability and send an alert to an
Active Directory distribution group?

If that doesn't work, we are saying is that there isn't any
out-of-the-box (OOB) functionality that you can tap into when events in
a list happen. If you feel that you must write code, you will need to
either override the JavaScript functions called by the discussion  list
or modify the CAML in the schema.xml for the discussion list to call
your own functions when users interact with the list. I recommend that
you make a copy of the discussion list and modify that to create a
custom list definition.

Answer #7    Answered By: Patricia Richardson     Answered On: Jun 24

The IT department will not allow us to frequently make changes to the distribution list.

I was designing the web part the following way.

Email will be send based on a Choice column in the discussion  board called Topic values "SharePoint", "Biztalk", "CMS" etc.

Now users who have 'subscribed' to a particular topic will get a custom notification by email. Topic values in Discussion board will match with Topic name in an XML file which will be in the Tool pane of the web part, something like this

<?xml version="1.0" encoding="utf-8" ?>
<Topic name="SharePoint">
<Email name=" 123@... " />
<Email name="1234@..." />
<Email name=" 1235@..." />
<Topic name="Biztalk">
<Email name="1236@..." />
<Email name="1237@..." />
<Email name=" 1238@..." />
<Topic name="CMS">
<Email name="123@..." />
<Email name="123@..." />
<Email name=" 123@..." />

Or the above XML file can be another SharePoint list to read emails.

They are already using the discussion board and also NewForm.aspx, DispForm.aspx EditForm.aspx are modified using FrontPage and javascript is added to get the dynamic nature in the drop down fields, so changes made to the list definition will not be reflected.

Will WindowsService project help me instead of a web part application?

Answer #8    Answered By: Alexandra Patterson     Answered On: Jun 24

Where will you host the Web Part?

Answer #9    Answered By: Christop Mcfadden     Answered On: Jun 24

This will not be a web part app. but a windows service app, which will run a service under "Services", www.codeproject.com/.../simplewindowsservice.asp

When a new discussion  item is added, the service will kickoff and use SharePoint OM to achieve the functionality. I have no idea if this will even work at all.

Answer #10    Answered By: Stefanie Ruiz     Answered On: Jun 24

How will the service know that a new discussion  item is added? It will
have to poll the list; very inefficient.

Answer #11    Answered By: Damon Garner     Answered On: Jun 24

I would have a list in the area/site where you have the forum.
you can have a webpart that allows a user to subscribe to a particular forum topic. store his mail id and the forum to which he subscribed.

customise the area/site where your forum is available in such a way that the user can create/reply through ur custom webpart. you can from your webpart send out an email (query the subscription list) a bit of work, but it will work.

Didn't find what you were looking for? Find more on Fire event on new discussion item Or get search suggestion and latest updates.