Writing other peoples calendar

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

When accessing other peoples calendar i get a security warning.
I hink that redemption can help me out, but i cant find the methods
for it.


Posting my code (C#)


private OfficeApplication m_Application = null;
private NameSpace m_NameSpace = null;


m_Application = OutlookApplication.Create();
if (m_Application == null)
{
return false;


}


m_NameSpace = m_Application.Session;

Recipient olRecipientToOpen = null;
olRecipientToOpen = m_NameSpace.GetRecipientFromID( CalendarId );


m_NameSpace.GetSharedDefaultFolder(olRecipientToOpen ,
OlDefaultFolders.olFolderCalendar);


It is the "GetRecipientFromID" that causes the security issue.
I dont know the name of the MailBox only the CalendarID.


Thanks in advance
//Mike
 
Normally, the prompt will not be shown if you use CreateRecipient(), but do
not call Recipient.Resolve before passing it to GetSharedDefaultFolder.
For some reason a resolved recipient causes Outlook to display the security
prompt. Since you do not know the recipient name or address, but only the
entry id. I don't think there is anything yo ucan do in OOM.

Accessing other user's Calendar folder in Redemption is pretty much the same
(no prompts of course), but you can pass either a name or an instance of the
RDOAddressEntry object to RDOSession.GetSharedDefaultFolder

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top