View Single Post
  #1  
Old October 10th 07, 10:55 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Delete Shared Task

It makes sense though that you can't delete it under those circumstances,
you assigned ownership of the item to someone else.

You can look at someone else's Navigation Pane only if you log into their
mailbox as them. Otherwise in Outlook 2003 the Navigation Pane stuff is
stored in an XML file based on the Outlook profile name plus some random
stuff stored in a hidden message in the hidden Common Views folder.

You can't use GetSharedDefaultFolder to get the Tasks folder and navigate
from there to Trash, you'll just get an error. That method doesn't give you
a folder with the full set of normal properties or store permissions. You'd
basically have to logout of that Outlook session and start a new session
logging into the other user's mailbox.

The alternative is if you open the mailbox as part of your profile. If it's
opened that way you can use NameSpace.Folders to iterate the open stores
until you get the other mailbox, then walk it's folder hierarchy to find the
Trash folder. But that won't work unless the mailbox is opened as part of
the profile.

In Outlook 2007 you could use NameSpace.Stores to get to the top of each
loaded store if you wanted that. That;s new for Outlook 2007 though.

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


"Job" wrote in message
...
Let's see, if you have UserA and UserB. UserB shares his tasks with UserA
and gives UserA ownership rights. UserA can delete UserB's tasks.
However, if UserA creates a new task and assigns it to UserB, the task now
changes it's properties somehow into a quasi email item and UserA cannot
delete that task from UserB. However, if UserB gives UserA editor rights
to UserB's Inbox, then UserA CAN delete the task which was assigned.
Since my last post I've spent two days on the phone with Outlook
developers from MS and they have indicated that it is an application
limitation.

So, if I can't delete it, maybe I can Move it to another folder in UserB's
tasks. So same scenario as above.

UserB gives permissions to UserA. UserB has a Tasks folder but has also
created a "Trash" folder in the tasks. My question earlier was how do I
access this "Trash" tasks folder on the UserB's machine?

Set Fldr2 = olNs2.GetSharedDefaultFolder _
(UserB, "Trash" folder in the tasks)

Can you look at the NavigationPane in the 'My Tasks' of UserB if you are
UserA?


Ads