In Outlook 2013 in Calendar view, when an AppointmentItem is selected, I need to be able to determine if that item is on the current user's Calendar, or if they have selected an item from someone else's shared calendar. So if John Doe is the current user, I need to check if the selected appointment is on John's calendar, or on someone else's. (I need to disable a button on my ribbon if they have selected an item on someone else's calendar)
How do I check this?
The key is to get a Folder object from Explorer.CurrentFolder via Application.ActiveExplorer. Shared folders will have the Folder.EntryID value duplicated in Folder.FolderPath, while non-shared folders will have an actual folder path value.
You can also use NameSpace.GetSharedDefault if you want to get a proper reference to a shared folder.
Related
From an Outlook VSTO Add-in, how can I know the list of folders shown by default in the Outlook? I mean, Inbox, Outbox, Sent Items, Deleted Items, etc. The ones that Outlook shows by default and make available to the user.
Assuming you mean mail folders. Outlook shows all mail folders (Mail.DefaultItemType == OlItemType.olMailItem) that are not hidden - PR_ATTR_HIDDEN MAPI property must be missing or false (use MAPIFolder.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x10F4000B")).
Now the order of the folders is a different matter...
Is there any way to know when a message is moved from a folder to another in the explorer view? Some event I can handle?
I need to do some things just when a message is moved from one folder to another.
You can handle the ItemAdd event on the target folder where items are moved.
Also you may find the Folder.BeforeItemMove event helpful. It is fired when an item is about to be moved or deleted from a folder, either as a result of user action or through program code.
We have an outlook add-in already published on the store and we now want to change the url it is pointing to (inside the manifest file). We want to know the process of doing it, will it be possible to retain the same ManifestId? Also after changing the URL, how would it reflect on the calendars where it is already installed, do the user's need to install again?
To update an add-in already published to Microsoft AppSource to point to a new Source location, you will need to edit your manifest to point to the new location and reupload your manifest in your SellerDashboard listing. (Don't forget to increment the version number!) Once you have uploaded your new manifest, you should submit your update to validation and the team will review the update. If approved the updated version of your add-in will automatically be psuhed to existing users.
Please do not change your manifestID as this will cause your add-in to fail validation.
I wrote a Python script that edits emails and appends them to a folder with the IMAP "APPEND" command. The emails are successfully "created" as I am able to fetch them from the destination folder after the execution of the APPEND command. The problem is that the newly created e-mails simply won't show up in Outlook. It is worth noting that the destination folder contains older e-mails (previously created with my script) which are still visible in Outlook. I removed all Outlook filters from the concerned folder but still there are no new emails showing up. I also pushed the "Update folder" button but still no success. There is probably some advanced Outlook configuration that I am missing here ;) I would appreciate some help.
I "solved" the problem by simply removing and re-adding the concerned account ("Account Properties" -> "Account Settings" --> "Remove"/"Add"). Now I will have to wait and check if the problem reappears.
If this does not solve the problem maybe try with another profile.
I am using VS2012 with TFS on a server workspace.
When someone checks something out a person icon is shown next to the file so you know it is currently locked by someone else, however when they check it back in the icon changes back to a lock icon without any indication that the files has been updated.
Is there a setting i'm missing that will show that you don't have the latest file maybe an icon next to the file in the solution explorer?
The only way i see how to do it is to view history on each file or go to the source control explorer and run a compare on every files, both of these options are not very efficient as I would not know when to perform this so i would have to do it on every check out.
Thanks in advance.
No, you did not miss any particular detail. After the checkin, the icon returns to a lock, and there are no notifications by default.
I believe that there is nothing that can be done about the padlock icon, but you can set up alerts (e-mail) to be triggered when check-ins are made.
Take a look here and here (alerts for specific folders) to understand how to configure e-mail alerts using TFS Event Service.
You can also bind notifications to workitems.
If your TFS is configured to use gated-checking to perform a build on a "build server" before each check-in, you can subscribe to the Team Foundation Build Notification to receive notifications of new builds that were queued/processed on the server.
Hope it helps.