A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Custom Field



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 4th 06, 06:52 AM posted to microsoft.public.outlook.program_vba
Lee Halford
external usenet poster
 
Posts: 2
Default Outlook Custom Field



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
-----------------------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***
Ads
  #2  
Old February 4th 06, 06:15 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook Custom Field

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Lee Halford" wrote in message ...

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
-----------------------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MSG Custom properties on right click custom tab [email protected] Add-ins for Outlook 1 February 1st 06 06:00 PM
MSG Custom properties on right click custom tab Steph Outlook and VBA 1 February 1st 06 05:55 PM
date fields - link the calander pop-up to a custom date field Tom Outlook - Using Forms 0 January 23rd 06 09:13 PM
Populate Company field from Contact field in custom task form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 07:37 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 03:01 PM


All times are GMT +1. The time now is 01:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.