Outlook Custom Field

  • Thread starter Thread starter Lee Halford
  • Start date Start date
L

Lee Halford

Hi,

This one is for Sue Mosher – You Outlook guru you!

I used your e-mail age code you had in an article for finding the age of
the e-mail by days and hours, very cool.

I was wondering if I could create a field to search through the
[message] body for some information and display it in the field so I can
sort by it?

I have a lot of e-mails for jobs that are formatted the same but with
different names in the body of the message it e.g. (see sample below).

I need to search to get the name of the “Affected End User” from the
message, e.g. the field would be called “Affected End User” and the
results would be the names of all the users who have the problems, in
this case “Gordon, Scott”?

Clear as mud?

-----------------------------------------------------
Example e-mail
-----------------------------------------------------
From: “Automatic job creating server”
Sent: Friday, 20 January 2006 4:33 p.m.
To: Halford, Lee
Subject: Request: 2753194 Summary: Need to transfer a PDF file into CSV
format
Activity Type: Initial
Severity: 5
Reported By Group: NZ SD - Service Desk
Assigned Group: NZ IM Client Services
Affected End User: Gordon, Scott
Asset:
System:
Platform:
Location:
Symptom: SymptomNZ.Software.Microsoft.Outlook 2000
Priority: 5
Status Code: OP
Status: Open

Incident Description: Need to transfer a PDF file into CSV format
 
Yes, this is possible. Your code would need to:

1) Get the message you want to modify. See http://www.outlookcode.com/d/code/zaphtml.htm for ways to handle incoming messages.
2) Add a new property (UserProperties.Add)
3) Get the information from the message body using standard text parsing techniques like those in the sample at http://www.outlookcode.com/codedetail.aspx?id=89.
4) Set the value of the property.
5) Save the item.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top