Can I determine if an item is in a shared calendar?

Status
Not open for further replies.
T

Tadwick

Given an item object, can I programmatically determine if it belongs to the

current user or is in a shared folder?
 
D

Dmitry Streblechenko

If you are using Outlook 2007, read the Parent property (returns MAPIFolder

object), then read the MAPIFolder.Store.ExchangeStoreType property - check

whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

Dmitry Streblechenko (MVP)

-

"Tadwick" <Tadwick> wrote in message

news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> Given an item object, can I programmatically determine if it belongs to
> the
> current user or is in a shared folder?
 
T

Tadwick

Thanks, Dmitry - I will try that

"Dmitry Streblechenko" wrote:


> If you are using Outlook 2007, read the Parent property (returns MAPIFolder
> object), then read the MAPIFolder.Store.ExchangeStoreType property - check
> whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "Tadwick" <Tadwick> wrote in message
> news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> > Given an item object, can I programmatically determine if it belongs to
> > the
> > current user or is in a shared folder?


>
 
T

Tadwick

Dmitry,

This doesn't work for shared folders:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.store.aspx

"Tadwick" wrote:


> Thanks, Dmitry - I will try that

> "Dmitry Streblechenko" wrote:
>
> > If you are using Outlook 2007, read the Parent property (returns MAPIFolder
> > object), then read the MAPIFolder.Store.ExchangeStoreType property - check
> > whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.
> > > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "Tadwick" <Tadwick> wrote in message
> > news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> > > Given an item object, can I programmatically determine if it belongs to
> > > the
> > > current user or is in a shared folder?

> >
 
D

Dmitry Streblechenko

Hmmm.. So when you get Null from Folder.Store, you have a delegate folder...

Dmitry Streblechenko (MVP)

-

"Tadwick" <Tadwick> wrote in message

news:A50090FE-2E44-46A8-8CBA-F7DB53435DC1@microsoft.com...
> Dmitry,

> This doesn't work for shared folders:

> http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.store.aspx

> "Tadwick" wrote:
>
> > Thanks, Dmitry - I will try that
>

>> "Dmitry Streblechenko" wrote:
> >
> > > If you are using Outlook 2007, read the Parent property (returns
> > > MAPIFolder
> > > object), then read the MAPIFolder.Store.ExchangeStoreType property -
> > > check
> > > whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.
> >> > > > > Dmitry Streblechenko (MVP)
> > >

> > >

> > >

> > > -
> > > "Tadwick" <Tadwick> wrote in message
> > > news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> > > > Given an item object, can I programmatically determine if it belongs
> > > > to
> > > > the
> > > > current user or is in a shared folder?
> >>> >
 
T

Tadwick

yeah, that's the logic I'm running with :)

"Dmitry Streblechenko" wrote:


> Hmmm.. So when you get Null from Folder.Store, you have a delegate folder...

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "Tadwick" <Tadwick> wrote in message
> news:A50090FE-2E44-46A8-8CBA-F7DB53435DC1@microsoft.com...
> > Dmitry,
> > This doesn't work for shared folders:
> > http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.store.aspx
> > "Tadwick" wrote:
> >
> >> Thanks, Dmitry - I will try that
> >
> >> "Dmitry Streblechenko" wrote:
> >
> >> > If you are using Outlook 2007, read the Parent property (returns
> >> > MAPIFolder
> >> > object), then read the MAPIFolder.Store.ExchangeStoreType property -
> >> > check
> >> > whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.
> >> >> > > >> > Dmitry Streblechenko (MVP)
> >> >

> >> >

> >> >

> >> > -
> >> > "Tadwick" <Tadwick> wrote in message
> >> > news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> >> > > Given an item object, can I programmatically determine if it belongs
> >> > > to
> >> > > the
> >> > > current user or is in a shared folder?
> >> >> >> >


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
oliv- determine to which address an email has been sent Outlook VBA and Custom Forms 3
M How can I determine which user read an email Exchange Server Administration 4
A Rules - how to determine if all conditions in rule are true or false Outlook VBA and Custom Forms 5
T How to determine when I switch from mail to calendar etc. Using Outlook 9
A account hacked, need software to determine what emails have been sent Using Outlook 1
J VBA code to determine 'show' state of SearchBar Using Outlook 7
L Outlook Meeting Response: determine when a meeting response has been edited Using Outlook 1
M RDO: using TypeOf to determine [OOM] Class Outlook VBA and Custom Forms 1
S How to determine if message will be encrypted on Send Outlook VBA and Custom Forms 1
T How to determine if email address resides in Exchange w/o OutlookSecurity prompts? Outlook VBA and Custom Forms 1
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
O In Agenda-view - How to copy an existing item months ahead or back? Using Outlook 0
S Outlook 2016 dont delete inbox item Using Outlook 0
talla Can't open Outlook Item. Using Outlook 0
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
B Zoom automatically next email item (VBA) Outlook VBA and Custom Forms 2
S Command Button_Click action on Item/Reminder Outlook VBA and Custom Forms 3
A Unflag Inbox and Flag Inbox with Orange Category After Item is send Outlook VBA and Custom Forms 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
C Copy Move item won't work Outlook VBA and Custom Forms 2
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
B Change row background color of selected item Using Outlook 1
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
geoffnoakes Find Contacts with UDFs "in this item" Using Outlook 1
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
GregS Many Sent Item folders Using Outlook 3
B Select / activate first email item in the searched query Using Outlook 1
4 Macro to set the category of Deleted Item? Outlook VBA and Custom Forms 2
N "Discussion" item Using Outlook 3
T outlook.com opens with "item not found" Using Outlook 1
Peter H Williams How to Move Mail item after processing Outlook VBA and Custom Forms 5
C Change default "Save Sent Item To" folder Outlook VBA and Custom Forms 9
M Shortcut to another outlook item Using Outlook 0
M Item edits doesn't always sync Using Outlook 11
Cdub27 Your changes to this item couldn't be saved because Server Denied Operation (HTTP 403 Forbidden) Using Outlook 1
M VBA to change flag status in outlook contact item Outlook VBA and Custom Forms 3
P Replying to calendar item using VBA Outlook VBA and Custom Forms 4
G Outlook item link Using Outlook 0
Q VBA Script to move item in secondary mailbox Outlook VBA and Custom Forms 2
D Save Sent Item to Using Outlook 0
T outlook 2010 mail item count doesnt match display Outlook VBA and Custom Forms 3
Jeanne Goodman Delete Calendar Item Bypassing Deleted Items folder Outlook VBA and Custom Forms 2
Diane Poremsky Display the Created Date field of any Outlook item Using Outlook 0
Diane Poremsky Outlook VBA: Work with Open Item or Selected Item Using Outlook 0
Z Item.Recipients for Task Assignment on Send Outlook VBA and Custom Forms 10
J "This item has been changed still want to delete it" message Using Outlook 3
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
D help with Item/Inspector close event Outlook VBA and Custom Forms 1

Similar threads

Top