A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get shared calendar's owner info



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 1st 09, 12:59 PM posted to microsoft.public.outlook.program_addins
Adi[_2_]
external usenet poster
 
Posts: 6
Default How to get shared calendar's owner info

Hi,

I have created an Outlook 2003 addin using VSTO 2005 SE.

I need to get shared calendar's owner info. Suppose I have opened a
shared calendar of UserA in Outlook. Now I create a calendar item into
the shared calendar manually. I need to run a logic based on UserA's
display name/email address.

How do we get UserA details programmatically?

Thanks,
Aditya
Ads
  #2  
Old April 1st 09, 02:35 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to get shared calendar's owner info

Where would this shared calendar folder be located, in another Exchange
mailbox or a PST file or what?

There really isn't any information that's readily available in cases like
this, the Exchange properties for store owner and mailbox name won't be
there unless the folder is opened as part of a mailbox opened as part of the
Outlook profile.

A hack would get the StoreID of the shared folder and massage that hex
string into an array of ASCII bytes. Part of that array would have the
Exchange distinguished name of the folder owner that can be decoded from the
array. From there you'd need to translate the Exchange DN into a recipient.

You can see the effect by looking at the StoreID property using a MAPI
viewer such as MFCMAPI from MS or OutlookSpy (www.dimastr.com) and see what
that looks like.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Adi" wrote in message
...
Hi,

I have created an Outlook 2003 addin using VSTO 2005 SE.

I need to get shared calendar's owner info. Suppose I have opened a
shared calendar of UserA in Outlook. Now I create a calendar item into
the shared calendar manually. I need to run a logic based on UserA's
display name/email address.

How do we get UserA details programmatically?

Thanks,
Aditya


  #3  
Old April 2nd 09, 10:18 AM posted to microsoft.public.outlook.program_addins
Adi[_2_]
external usenet poster
 
Posts: 6
Default How to get shared calendar's owner info

Thanks for the reply.
I don't think you can share a calendar on PST. In my case, shared
calendar is located in Mailbox of UserA.

I got the hack working but I was just wondering there must be a
simpler way to get the information like on whose calendar I am
creating the meeting. My scenario would be:
1. Open Outlook.
2. Open shared calendar of UserA (Suppose you have create and edit
permission on UserA's calendar).
3. Create a new meeting or modify an existing meeting.
4. Save the meeting.

At step 4, I need to find out that it is UserA's calendar and take
appropriate action. Is there a way to get this information using OOM
or MAPI?

Thanks,
Aditya
  #4  
Old April 2nd 09, 04:23 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to get shared calendar's owner info

In that case you can use the Organizer property on the item after it's
saved.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Adi" wrote in message
...
Thanks for the reply.
I don't think you can share a calendar on PST. In my case, shared
calendar is located in Mailbox of UserA.

I got the hack working but I was just wondering there must be a
simpler way to get the information like on whose calendar I am
creating the meeting. My scenario would be:
1. Open Outlook.
2. Open shared calendar of UserA (Suppose you have create and edit
permission on UserA's calendar).
3. Create a new meeting or modify an existing meeting.
4. Save the meeting.

At step 4, I need to find out that it is UserA's calendar and take
appropriate action. Is there a way to get this information using OOM
or MAPI?

Thanks,
Aditya


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Calendar doesn't show name owner in Taskbar [email protected] Outlook - Calandaring 2 June 12th 07 08:57 AM
shared calendar's and color formula Outlook - Calandaring 1 May 4th 07 06:20 PM
Shared Calendar's and OWA gary Outlook - Calandaring 1 March 29th 07 07:36 PM
No Owner info? Angyl Outlook - Using Forms 1 June 1st 06 06:01 PM
Any way to notify the Owner(s) of the Shared Calendar when Moves/Adds/Changes/Deletes are made? David M. Kurtz Outlook - Calandaring 1 February 22nd 06 10:06 PM


All times are GMT +1. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.