Reading Data From a Message Form

  • Thread starter Thread starter Fred Block
  • Start date Start date
F

Fred Block

Hi All,

I will need to read data from a message form and I'm not sure where to
start. Will the data be stored in the MailItem.Body or in specific fields
somewhere (or am I way off base)?

I was able to cobble some code together that reads the MailItem.Body with no
problem. My solution however needs to read data from a form (with many
fields) and that's where I'm stuck.

What exactly will I need to know?
- Whether the form is emailed or not (Exchange Server)?
- Whether the form is setup with the same or different "Edit and Read"
interfaces?

I'm brand-new to this so *ANY* help or pointers would be greatly
appreciated. I'm ready to dive in!

Thanks in advance!
Kind regards - Fred
 
Depends totally on the form and item. The only information you need is the names of the built-in and custom fields used to store the data, which you should be able to get from the person who designs the form.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Hi Sue,
the names of the built-in and custom fields used to store the data, which
you should be able to get from the person who designs the form.<<

Thanks Sue! So if I know the names of the fields, I can get the data from a
field using the following (correct?):
MsgBox myItem.UserProperties.Item("Account Manager")

That said, how can I assure that I'm running the code against the correct
mail message item? Can I place a button on the form itself (or have the form
designer place one there) and have that run my procedure?

Kind regards - Fred
 
Back
Top