Outlook 2010 Add-ins context menu on attachments - outlook

I am doing a development in C# - outlook ad-ins.
I want to modify the context menu for the attachment. In other words, you have a right click menu coming for each attachment.
I don't want on Mail Item.
I want on Mail Item > Item (Attachment)
I look forward for an answer.

Are you using Outlook 2007? There is an event that is raised when you click attachment right click:
Application.AttachmentContextMenuDisplay
You can work with that.

Related

How to add an Outlook Add-In Button to the main Mail Overview

I'm trying to create an Outlook Add-In that will forward the selected mail message as an attachment when the button is pressed. Preferably this will work both for the Outlook Client, and Outlook Web Access. To do this, I need to add a button to the main UI in Outlook which shows the list of messages.
However, within the new Add-In format, I don't see an ExtensionPoint for Outlook that allows adding a button to the main mail UI.
https://learn.microsoft.com/en-us/office/dev/add-ins/reference/manifest/extensionpoint#extension-points-for-word-excel-powerpoint-and-onenote-add-in-commands
There are options for the MessageRead pane or the MessageCompose pane, but I don't see anything for the general overview.
However, the following New Feature complains that multiple mail items can't be selected with the add-in syntax, which seems to imply that a single mail item can be selected. If a single mail item can be selected, then that implies that there is a way to add a button to the overview mail page since that's the only place mail can be selected.
This makes me think it is possible to do this, but I'm not sure how.
Can someone please point me to how this might be done?
NOTE: I am NOT trying to create a COM plugin. That is the old format and I've noticed they're increasingly less reliable in Outlook 2016. I am trying to use the new format.
The MessageReadCommandSurface and MessageComposeCommandSurface extension points for Outlook applies to both the main Outlook window (the Explorer) and the item (Inspector) windows. The Explorer Ribbon buttons activate when an email is selected, so the buttons interact on the selected email. So you don't have to do anything if you've already defined those extension points.

How to create a permanent notification in a new Outlook message?

(screenshot that shows WebExtNotifications )
Is there a method to programmatically create a permanent notification like shown on the screenshot without "Dismiss this message" link?
If WebExtNotifications property is documented anywhere?
Thanks,
Victor Ivanidze
You can create a task pane aligned to the top. That pane is free to display anything it wants using any controls.
You could try to Office.NotificationMessages interface, it is returned as the notificationMessages property of an item.
For more information, Please refer to these links:
Office.NotificationMessages interface
Office JavaScript API support for content and task pane add-ins in Office 2013

What are all the possible types in an Outlook folder?

I am trying to iterate through the Items collection of the Inbox folder of an account. What is the class of the Item if it is a NDR message?
ReportItem. You can see that object in OutlookSpy (I am its author): select the item, click Item button on the OutlookSpy ribbon.

CRM Outlook Add-in: where to get the list of idMso values?

I need a list of idMso values to further customize the CRM ribbon on the standard mail and appointment Outlook windows.
Specifically I am interested in these controls:
"CRM" group
"Untrack" button
"Set Regarding" button
Here is the screenshot of the ribbon group I am talking about:
Thank you.
Go to Outlook >> Choose file >> Select customizeRibbon option. On the right pane just select Mail Tabs/ALL Tabs/Tool Tabs from dropdown and do hover over the control names. On hover the name you find is idMso value for that control button.
You can find the standard ribbon XML definitions inside the CRM 2011 SDK, the folder is resources\exportedribbonxml.
By the way I suggest to use an editor for ribbon modifications, one is
Ribbon Workbench for Dynamics CRM 2011

How to create a button like New Mail in Outlook add-in?

Can anyone pls tell me how to create a button(in CommandBar) like 'New Mail' (with a dropdown list) in Outlook?
When one clicks on the button it should do some action and when clicked on the down arrow mark, it should populate a list of items. I am in need of this very much.
If anyone know the answer pls let me know.
Thanks in advance!
-Pranav
Assuming Outlook<2007, you add a new button to the explorer/inspector via CommandBars.Add("foo", Type:=msoControlDropdown) and add entries to the drop-down via myDropdown.Add("bar").
See also the reference for CommandBarComboBox.
You can't populate it on click though, you have to find other suitable events for that, e.g. Explorer.SelectionChange.
On Outlook >= 2007 you need to customize the ribbon which is a bit more writing work. Customizing the Ribbon in Outlook 2007 is a good introduction into that.
To create a new mail item use myOlApplication.CreateItem(olMailItem) or myMailFolder.Items.Add(), set it up as needed and show it in an inspector via e.g. myMailItem.Display().
Sound like you are looking for a split button. Unfortunately the API does not expose that.
You can hack up a Popup under the button which is a poor attempt of a split button.

Resources