Control the values in thread of the Read Page

S

Sandi V

I've customized the mail form as a conference room request, with drop-downs
that let users select the room they want, date & times, and setup (Coffee,
beer, wine, projector, laptop). They send the form to the receptionist after
they fill it out. When the receptionist receives it, she selects, File, Move
to Folder and moves it the calendar for the appropriate room.

The new calendar item contains the original email object and what I'm
calling the "thread" -- with From, Sent, To, and Subject fields at the top.
Following that are new fields I made, shown in alphabetical order. I'd like
to control that order (ie., Beer is the first field, but I want
ConferenceRoom, MtgDate, MtgStartTime, MtgEndTime, etc.). I also want to
remove several fields from the thread.

(I already tried to rename the controls numerically. That didn't work, so I
think it's the field name not the control name that is being sorted; and I
don't see a way to rename fields).

Can anybody help me out? Thanks in advance!
Sandi
 
K

Ken Slovak - [MVP - Outlook]

You need to get the Body property of the appointment item and read that into
a string variable. Then you can parse it and move sentences around to your
heart's desire. What you have in the Body is just one long string separated
by newlines (carriage return, linefeed).
 
S

Sandi V

Thank you, Ken. I'm not sure how I would get to the body of the appointment
item; since I'm relying on the user to select File, Move to folder after she
receives the form.
 
K

Ken Slovak - [MVP - Outlook]

You could get it as it comes into Inbox, using an Inbox.Items.ItemAdd()
handler or a NewMailEx() handler. Or you could use Items.ItemAdd() handlers
for each target resource calendar folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top