Creating Rules for Meeting Requests

M

Matthew

I have created a rule that will move incoming meeting requests to a separate
folder. What I would like to be able to do is move those meeting requests
where I am listed as an optional attendee to one folder and those where I am
required to another.

Using the Rule Wizard doesn't seem to work, because the only fields
available to select and put conditions on are those for a "Mail" type item
not a "Meeting Request" type item, even if I select "is a meeting request"
check box.

Can anyone shed some light on how I might accomplish this? If I need to
create a macro, I would need help with field names... for example what is the
field name for "optional attendee" in the meeting request form? Also if I
have to go the macro route, I would need an example of how to get the macro
to recognize it is dealing with a meeting request and not a mail type item.

Thank-x in advance to those who offer guidance!
 
S

Sue Mosher [MVP-Outlook]

A "run a script" rule action actually uses not an external script but a VBA procedure with a MailItem or MeetingItem as its parameter. That item is processed by the code:


Sub RunAScriptRuleRoutine(MyMtg As Meeting.Item)
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim m As Outlook.MeetingItem

strID = MyMtg.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set m = olNS.GetItemFromID(strID)
' do stuff with m, e.g.
MsgBox m.Subject

Set m = Nothing
Set olNS = Nothing
End Sub

You can look up field names using the object browser (F2) in VBA.

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

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

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