![]() |
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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
#11
|
|||
|
|||
![]()
Hmmm...that kind of defeats the purpose of the 'behind the scenes' code. I
didn't want to have everyone have to open everyone's task folder. It seems there must be a way to delete a task from a shared folder in which you have ownership rights using GetSharedDefaultFolder. Would you approach the problem completely differently? Is there a way to open the users shared folders without actually displaying them? Is there a way to say objItem.display (but make it not visible) and then pass some key strokes to delete and not to decline (you know that little window that pops up)? Thanks for your feedback on this Ken. "Ken Slovak - [MVP - Outlook]" wrote in message ... Yes, those are what I meant. That might be the root of the problem possibly. -- 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 ... Ken, Are you talking about FileOpenOther User's FolderTasks? For this particular user, yes I have that open, though in my code I get at that folder by way of GetSharedDefaultFolder. |
Ads |
#12
|
|||
|
|||
![]()
I never use SendKeys for something like that, it's a real hack.
If you call item.Display() the item will be shown, that's what the call is for. I really haven't had a problem with using GetSharedDefaultFolder myself, I'm just trying to help you figure out why your code isn't working. Usually if you get the error you've gotten it's a permissions issue, the item isn't available or it's open in another application, or you've modified it or held a reference to the object somewhere else. Another possibility is a custom form with code that modified that item. -- 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 ... Hmmm...that kind of defeats the purpose of the 'behind the scenes' code. I didn't want to have everyone have to open everyone's task folder. It seems there must be a way to delete a task from a shared folder in which you have ownership rights using GetSharedDefaultFolder. Would you approach the problem completely differently? Is there a way to open the users shared folders without actually displaying them? Is there a way to say objItem.display (but make it not visible) and then pass some key strokes to delete and not to decline (you know that little window that pops up)? Thanks for your feedback on this Ken. |
#13
|
|||
|
|||
![]()
Ok,
The task that is being referred to is always going to be a custom form. Do I have to refer to the task that is on a custom form differently. Sorry didn't occur to me that that would change the way you interact with it.. "Ken Slovak - [MVP - Outlook]" wrote in message ... I never use SendKeys for something like that, it's a real hack. If you call item.Display() the item will be shown, that's what the call is for. I really haven't had a problem with using GetSharedDefaultFolder myself, I'm just trying to help you figure out why your code isn't working. Usually if you get the error you've gotten it's a permissions issue, the item isn't available or it's open in another application, or you've modified it or held a reference to the object somewhere else. Another possibility is a custom form with code that modified that item. -- 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 ... Hmmm...that kind of defeats the purpose of the 'behind the scenes' code. I didn't want to have everyone have to open everyone's task folder. It seems there must be a way to delete a task from a shared folder in which you have ownership rights using GetSharedDefaultFolder. Would you approach the problem completely differently? Is there a way to open the users shared folders without actually displaying them? Is there a way to say objItem.display (but make it not visible) and then pass some key strokes to delete and not to decline (you know that little window that pops up)? Thanks for your feedback on this Ken. |
#14
|
|||
|
|||
![]()
No, you don't refer to it differently but if the form has code behind it
that modifies that item in any way that would be the source of your problem. You can try and see if saving the item in the form code after any modifications helps but I suspect that you might just have to rewrite the form code to not modify anything and handle any changes you want in the addin code instead to be able to do what you want. -- 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 ... Ok, The task that is being referred to is always going to be a custom form. Do I have to refer to the task that is on a custom form differently. Sorry didn't occur to me that that would change the way you interact with it.. |
#15
|
|||
|
|||
![]()
I've found that if the user creates a regular task then I can delete it
perfectly fine with the code. However, it has the problem when the task has been assigned to that user from another user say PMO, then I cannot delete it, but I can look at all of the values etc, if I have the write to email I can re-assign the task (though we don't want everyone to have delegated email rights). Any ideas? "Ken Slovak - [MVP - Outlook]" wrote in message ... No, you don't refer to it differently but if the form has code behind it that modifies that item in any way that would be the source of your problem. You can try and see if saving the item in the form code after any modifications helps but I suspect that you might just have to rewrite the form code to not modify anything and handle any changes you want in the addin code instead to be able to do what you want. -- 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 ... Ok, The task that is being referred to is always going to be a custom form. Do I have to refer to the task that is on a custom form differently. Sorry didn't occur to me that that would change the way you interact with it.. |
#16
|
|||
|
|||
![]()
Ken,
What would also work is if we created another folder in everone's outlook tasks called..'Trash'. Then we could find the correct task and move it on the shared users computer to that new folder. Is this possible? If so, how do you refer to a different folder within 'My Tasks' folders? "Job" wrote in message ... I've found that if the user creates a regular task then I can delete it perfectly fine with the code. However, it has the problem when the task has been assigned to that user from another user say PMO, then I cannot delete it, but I can look at all of the values etc, if I have the write to email I can re-assign the task (though we don't want everyone to have delegated email rights). Any ideas? "Ken Slovak - [MVP - Outlook]" wrote in message ... No, you don't refer to it differently but if the form has code behind it that modifies that item in any way that would be the source of your problem. You can try and see if saving the item in the form code after any modifications helps but I suspect that you might just have to rewrite the form code to not modify anything and handle any changes you want in the addin code instead to be able to do what you want. -- 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 ... Ok, The task that is being referred to is always going to be a custom form. Do I have to refer to the task that is on a custom form differently. Sorry didn't occur to me that that would change the way you interact with it.. |
#17
|
|||
|
|||
![]()
I don't follow your last 2 posts at all.
Are you referring to the NavigationPane My Tasks? In Outlook 2003 you have no access at all to that using code, in Outlook 2007 you can use the Explorer.NavigationPane.NavigationGroups.Navigatio nGroup(olTaskModule) object. -- 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 ... Ken, What would also work is if we created another folder in everone's outlook tasks called..'Trash'. Then we could find the correct task and move it on the shared users computer to that new folder. Is this possible? If so, how do you refer to a different folder within 'My Tasks' folders? "Job" wrote in message ... I've found that if the user creates a regular task then I can delete it perfectly fine with the code. However, it has the problem when the task has been assigned to that user from another user say PMO, then I cannot delete it, but I can look at all of the values etc, if I have the write to email I can re-assign the task (though we don't want everyone to have delegated email rights). Any ideas? |
#18
|
|||
|
|||
![]()
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? "Ken Slovak - [MVP - Outlook]" wrote in message ... I don't follow your last 2 posts at all. Are you referring to the NavigationPane My Tasks? In Outlook 2003 you have no access at all to that using code, in Outlook 2007 you can use the Explorer.NavigationPane.NavigationGroups.Navigatio nGroup(olTaskModule) object. -- 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 ... Ken, What would also work is if we created another folder in everone's outlook tasks called..'Trash'. Then we could find the correct task and move it on the shared users computer to that new folder. Is this possible? If so, how do you refer to a different folder within 'My Tasks' folders? "Job" wrote in message ... I've found that if the user creates a regular task then I can delete it perfectly fine with the code. However, it has the problem when the task has been assigned to that user from another user say PMO, then I cannot delete it, but I can look at all of the values etc, if I have the write to email I can re-assign the task (though we don't want everyone to have delegated email rights). Any ideas? |
#19
|
|||
|
|||
![]()
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? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to delete a task request from inbox in outlook | [email protected] | Outlook - General Queries | 0 | March 8th 07 06:59 PM |
How to delete a recurrent task with a blocked remove recurrence | Dr Steve | Outlook - Calandaring | 0 | August 10th 06 05:36 PM |
How do I delete a Private appointment in a shared calendar? | WendyN201 | Outlook - Calandaring | 1 | June 13th 06 03:25 AM |
Handling Task Item Delete Event | AtulSureka | Outlook - Using Forms | 0 | January 24th 06 10:25 AM |
Delete / archive old entries in shared calendar in public folder | Slam | Outlook - Calandaring | 1 | January 18th 06 10:08 PM |