![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |