Get FreeBusy information for a Room/resource

Status
Not open for further replies.
T

TWFyaXVz

Hi I am trying to get FreeBusy for a resource, is this possible?

I tried to use:

private void SetRecipientTypeForAppt()

{

Outlook.Application oApp = new

Microsoft.Office.Interop.Outlook.Application();

Outlook.AppointmentItem appt =

oApp.CreateItem(Outlook.OlItemType.olAppointmentItem) as

Outlook.AppointmentItem;

appt.Subject = "Customer Review";

appt.MeetingStatus = Outlook.OlMeetingStatus.olMeeting;

appt.Location = "RM@INFO.ARoom";

appt.Start = DateTime.Parse("5/23/2009 10:00 AM");

appt.End = DateTime.Parse("5/23/2009 11:00 AM");

Outlook.Recipient recipRequired = appt.Recipients.Add("Bob Smith");

recipRequired.Type = (int)Outlook.OlMeetingRecipientType.olRequired;

Outlook.Recipient recipOptional = appt.Recipients.Add("Tom Jones");

recipOptional.Type = (int)Outlook.OlMeetingRecipientType.olOptional;

Outlook.Recipient recipConf = appt.Recipients.Add("RM@INFO.ARoom");

recipConf.Type = (int)Outlook.OlMeetingRecipientType.olResource;

appt.Recipients.ResolveAll();

appt.Display(false);

MessageBox.Show(recipConf.FreeBusy(DateTime.Now, 15, false));

}

However the last line throuws a COM exception. Is it possible to retrieve

FreeBusy or appointment dates from a Resource?

Regards

Marius
 
What is that COM exception?

Dmitry Streblechenko (MVP)

-

"Marius" <Marius> wrote in message

news:181E91AD-F02B-4A83-BD81-CCD14AFF6D6C@microsoft.com...
> Hi I am trying to get FreeBusy for a resource, is this possible?

> I tried to use:

> private void SetRecipientTypeForAppt()
> {

> Outlook.Application oApp = new
> Microsoft.Office.Interop.Outlook.Application();
> Outlook.AppointmentItem appt =
> oApp.CreateItem(Outlook.OlItemType.olAppointmentItem) as
> Outlook.AppointmentItem;

> appt.Subject = "Customer Review";
> appt.MeetingStatus = Outlook.OlMeetingStatus.olMeeting;
> appt.Location = "RM@INFO.ARoom";
> appt.Start = DateTime.Parse("5/23/2009 10:00 AM");
> appt.End = DateTime.Parse("5/23/2009 11:00 AM");

> Outlook.Recipient recipRequired = appt.Recipients.Add("Bob Smith");

> recipRequired.Type = (int)Outlook.OlMeetingRecipientType.olRequired;

> Outlook.Recipient recipOptional = appt.Recipients.Add("Tom Jones");

> recipOptional.Type = (int)Outlook.OlMeetingRecipientType.olOptional;

> Outlook.Recipient recipConf = appt.Recipients.Add("RM@INFO.ARoom");

> recipConf.Type = (int)Outlook.OlMeetingRecipientType.olResource;

> appt.Recipients.ResolveAll();
> appt.Display(false);

> MessageBox.Show(recipConf.FreeBusy(DateTime.Now, 15, false));

> }

> However the last line throuws a COM exception. Is it possible to retrieve
> FreeBusy or appointment dates from a Resource?

> Regards
> Marius
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K Problem with FreeBusy (before 1pm only) Outlook VBA and Custom Forms 7
M How to setup outlook after importing old account information - Entering email account info creates with "(1)" after the account! Using Outlook 1
H Information from user defined field into Excel Outlook VBA and Custom Forms 7
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
S Unable to Edit Contact Information in Certain Contact Folders Using Outlook 3
I Backup email account information Using Outlook 2
T Received many email without information Using Outlook 1
R Trying to extract information between two symbols from outlook subject Using Outlook 2
B Macro To Create Rule To Export From Certain Folder Email Information in one workbook multiple sheets Outlook VBA and Custom Forms 0
B Clearing ALL information from Outlook 2010 Using Outlook 1
J Group email messages based upon information in InfoBar Using Outlook 0
R The changing way to access information in Office 365 Using Outlook 0
N Outlook 2013 information message Outlook VBA and Custom Forms 1
F Exchange User Information - Notes Exchange Server Administration 4
P Outlook Macro sends information to Excel Using Outlook 1
M How to get information about a set of meetings Outlook VBA and Custom Forms 3
C Custom Forms: Question about retaining form information throughout the entire conversation Outlook VBA and Custom Forms 2
G Missing outlook 2013 information Using Outlook 2
M Outlook 2013 Calendar showing No Information Using Outlook 1
C Rule to Handle Meeting Replies that updates tracking information Using Outlook 2
T Contacting <Server Name and Path> for Information When Adding Attachments Using Outlook 0
E Autofill Information in Email Template Using Outlook 2
G Hidden information Exchange Server Administration 0
J Header information missing in one account only Using Outlook 10
I Search email with information in detailed headers Using Outlook 3
G Discrepancy in drafts information in multiple computers Exchange Server Administration 0
G Pop up information location issue Using Outlook 4
W How to build a macro that interacts with and uses information from an Excel sh Using Outlook 1
J Problems starting Information Store Server in Exchange 2003 Exchange Server Administration 13
S You’ve received Free/Busy information from this user Message Using Outlook 10
J Issues printing HTML emails - Contacting server for information Using Outlook 1
M Outllook 2000 - 2 Errors - The Information Service / The Messaging Interface Using Outlook 7
A How do I ensure my BCM information get transferred BCM (Business Contact Manager) 2
A Updating contacts with new information BCM (Business Contact Manager) 1
H popup window "Location Information" Microsoft Office Outlook 2007 Using Outlook 3
K Linking Information from Accounts to Business Contacts Manager BCM (Business Contact Manager) 1
B Insert information to MailItem Outlook VBA and Custom Forms 1
K Extracting Calendar information from a OST file? Exchange Server Administration 5
S Need: Date handling in Outlook Macros, either information/documentation Outlook VBA and Custom Forms 1
T populating fields with information from the address book Outlook VBA and Custom Forms 5
Q Smart Tags - Telephone Number recognizing the contact information Outlook VBA and Custom Forms 3
R Custom form retains old information Outlook VBA and Custom Forms 2
P Task display now leaves little room for notes Using Outlook 10
P Outlook room resource calendars and best practices Exchange Server Administration 0
D Office365 Conference Room name change? Using Outlook 5
Diane Poremsky Close a Meeting When the Room is Full Using Outlook 0
A How to enable outlook room finder (outlook connector (mapi)) user ? Using Outlook 3
S Meeting room booking report Outlook VBA and Custom Forms 1
D Not enough room in Favorites Using Outlook 1
R Room Finder not appearing Using Outlook 2

Similar threads

Back
Top