How to get shared calendar's owner info

  • Thread starter Thread starter Adi
  • Start date Start date
Status
Not open for further replies.
A

Adi

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
 
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.

"Adi" <adityajain_bit@indiatimes.com> wrote in message

news:7710ff4d-05ae-41d9-918e-6f409d83f709@y33g2000prg.googlegroups.com...
> 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
 
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
 
In that case you can use the Organizer property on the item after it's

saved.

"Adi" <adityajain_bit@indiatimes.com> wrote in message

news:95301a22-a524-40fb-813f-89dd9752f916@z23g2000prd.googlegroups.com...
> 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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
U When opening shared Calendar "The set of folders cannot be opened" Using Outlook 0
V Unchecking my calendar and leaving shared one visible Outlook VBA and Custom Forms 1
Fozzie Bear Shared Calendar For Scheduled Tasks Using Outlook.com accounts in Outlook 3
S Excel VBA and shared calendar issue Outlook VBA and Custom Forms 3
J O365 - Adding Shared Google Calendar ICS link issue in O365 Using Outlook 0
N Having Shared Calendar shift to Current day Using Outlook 0
R auto send email when meeting closes from a shared calendar only Outlook VBA and Custom Forms 2
J Updating existing entry on shared calendar wants to send update from delegate Using Outlook 0
G Unable to dismiss reminders from share point list calendar shared in Outlook Using Outlook 2
M Using conditional formatting on a shared calendar with categories Using Outlook 6
D Outlook macros to create meeting on shared calendar Outlook VBA and Custom Forms 10
C Outlook Shared Calendar Using Outlook 1
K Other Shared Calendar on Outlook cannot change items Using Outlook.com accounts in Outlook 7
Diane Poremsky Shared Calendar Can't Be Deleted Using Outlook 0
A Get shared calendar name or id in custom appointment form Using Outlook 0
Mark Foley Problem subscribing to shared calendar Using Outlook 1
M Copy new appointments created in multiple shared calendars to another exchange calendar Outlook VBA and Custom Forms 1
T Shared calendar not updating Using Outlook 1
Diane Poremsky How to View a Shared Calendar on a Smartphone Using Outlook 0
N Adding Appointment Item in Outlook to Shared Calendar Folder Outlook VBA and Custom Forms 7
J Auto Accept Notifications from a shared icloud calendar? Using Outlook 4
M Create an Appointment from XL Spreadsheet in a Shared Calendar. Outlook VBA and Custom Forms 1
F e-mail reminder for shared calendar Outlook VBA and Custom Forms 1
D Reminders in Outlook shared calendar Using Outlook 2
Z Reminders for all members of a shared calendar Using Outlook 1
M Email notification on creation of an appointment shared calendar? Outlook VBA and Custom Forms 3
Rory Campion Not getting a warning when a shared calendar item has been updated by someone else Using Outlook 2
N Outlook Shared appointments automatically to Private Calendar Using Outlook 1
I how to create appointment using saved template onto public folder shared calendar Using Outlook 3
Alex Hall When updating shared calendar, it does not automatically update personal calendar Using Outlook 3
J Creating an "isolated" shared calendar in Outlook Outlook VBA and Custom Forms 1
A Excel to Shared Outlook Calendar Using Outlook 1
T Shared Calendar usable from Intranet Using Outlook 2
R How to copy outlook 2010 shared calendar appointment or meeting to personal calendar by vba? Outlook VBA and Custom Forms 1
R How to turn OFF the Reminders for shared calendar events but not off personal Using Outlook 1
M Open meeting in organizer's shared calendar Using Outlook 0
R New computer, OL2010 unable to display shared calendar appointments Exchange Server Administration 3
A Shared Calendar Outlook 2010 Using Outlook 4
T Setting Color codes for each user of a shared Calendar Using Outlook 1
M Calendar navigation displays previous field records.check calendar is shared.. Using Outlook 3
S Some people can not see the contents of my shared calendar. Using Outlook 2
S Viewing shared calendar on smart phones Using Outlook 1
M outlook shared calendar data export to excel sheet Using Outlook 1
K Prevent meeting requests being sent from a shared calendar in a group mailbox Using Outlook 1
D Selecting shared calendar for appointment/meeting templates Using Outlook 2
L Shared calendar appointments received as emails, stays in inbox! Using Outlook 1
N Prevent reminder dismisal in shared calendar Using Outlook 1
E Shared Calendar Permissions Exchange Server Administration 4
C shared calendar reminders Using Outlook 6
J Oulook 2010 Shared Calendar Syncing Using Outlook 1

Similar threads

Back
Top