Hi All:
I am 6 months new to sharepoint administration and we are using a WSS 3.0
environment. My problem is I want to create an event handler that will pull
certain fields (other than the body, subject and email address) of an email and
then create a new list item with the selected fields. For Example: Create an
outlook form with fields like First Name, Last Name, Problem description,
Contact method (choice field), ID, hardware used (choice field) Etc... This is
being used for a remote administration we are providing.
Anyways, I have no experience developing in visual studio, but do have access
to it. After a few weeks of research I have found the code for the event
handler that I need to modify and found basic instructions to create an event
handler, but I have been unsuccessful putting them together and building the
solution in Visual Studio.
The code that is responsible for pulling the Body, subject and email out of the
box in sharepoint is:
namespace TaskHandler
{
public class SimpleHandler:SPEmailEventReceiver
{
public override void EmailReceived(SPList list,
Microsoft.SharePoint.Utilities.SPEmailMessage emailMessage, string receiverData)
{
SPListItem item = list.Items.Add();
item["Title"] = emailMessage.Headers["Subject"];
item["DueDate"] =
System.DateTime.Parse(emailMessage.Headers["Date"]).AddDays(21);
item["Description"] = emailMessage.HtmlBody;
item.Update();
}
}
}
However for me to edit it and make it work/deploy it as an event handler is not
working to well.
Anyways, ANY HELP that any of you developers can provide me with would be MUCH
APPRECIATED!!!
I am a quick learner!
Thank you,
Mike
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sezai KOMUR
Sent: Thursday, January 31, 2008 10:13 PM
To: [email protected]
Subject: [OzMOSS] RE: Custom Managed Properties
Re-run the search crawl.
If you have just mapped the Managed Property to a Crawl Property then you need
to re-run the crawl again in order for the Managed Property to correctly map
through to the Crawl Property.
Ie.
1. Crawl once to detect the Crawl Property
2. Create a Managed Property and Map it to the Crawl Property
3. Run the crawl again after mapping the Managed Property
Sezai Kömür
Senior Developer - BEng, BSc - Microsoft Certified Technology Specialist -
http://www.moss2007.com.au/
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Noble
Sent: Friday, 1 February 2008 1:12 PM
To: [email protected]
Subject: [OzMOSS] Custom Managed Properties
Hi All,
[Sorry this is a bit long winded]
I have a custom Managed Property that is mapped to a Crawled Property.
The Crawled Property is a metadata element in an aspx page, and has been
crawled and discovered by the query engine. I know that the property has been
found because on the crawled property page it lists some sample documents that
use the property.
The problem I am having is that the Managed Property is returning blank when I
perform a search, and when I look at the Managed Property properties it has
"Number of items found with this property: 0" in the Content using this
property section.
Example metadata element: <meta name="MD.Title" content="test page" />
Thanks for your help
Roger
[For those who are interested in hearing about my last problem. The client
still wanted the documents to be crawled instantly when a page was created - so
I'm starting an incremental crawl every time. So far this works fine, but has
not been tested under load.]
IMPORTANT NOTICE: This e-mail message is intended to be received only by
persons entitled to receive the confidential information it may contain. E-mail
messages to clients of Oconics Pty Ltd may contain information that is
confidential and legally privileged. Please do not read, copy, forward or store
this message unless you are an intended recipient of it. If you have received
this message in error, please forward it back to the sender and delete it
completely from your computer system.
------------------------------------------------------------------- OzMOSS.com
- to unsubscribe from this list, send a message back to the list with
'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net
------------------------------------------------------------------- OzMOSS.com
- to unsubscribe from this list, send a message back to the list with
'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net
------------------------------------------------------------------- OzMOSS.com
- to unsubscribe from this list, send a message back to the list with
'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net