Outlook Addin How to Make Custom Tab Show Only in New Message Compose Window - outlook

I'm sure there's a simple way to do this that I am overlooking. But, how do you make a custom tab in the Ribbon.xml show up only in the new message compose window? I want to have my own tab so that the ribbon for my groups and buttons will be clean.
I am currently doing a workaround to invalidate the tab control when a new mail item event happens, but there must be a simpler way to do this.
Any suggestions would be appreciated.
It's Outlook 2016 desktop in Windows 10.
Thank you.

Your ribbon XML must specify only Microsoft.Outlook.Mail.Compose - see https://learn.microsoft.com/en-us/visualstudio/vsto/customizing-a-ribbon-for-outlook?view=vs-2019

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

Remove Application Ribbon from new SubArea in Microsoft Dynamics CRM 2015

I want to remove the ribbon that automatically creates when a new SubArea is created with XrmToolBox's SiteMap Editor.
See screendump
here.
Do anyone know how to do this?
I solved the problem by using the Application Ribbon. There is some icons that you can hide/unhide at the top of the screen. I think those buttons you automatically get when you create a new SubArea is only shown in the application ribbon, and not in the entities.
Atleast they dissapeared in my solution, by just hiding those buttons in the "home" workspace inside the application ribbon.
There is also some code you can try, but i dont know where :)
Code:
Mscrm.BasicHomeTab.New.NewActivity.Hide
I think its the same code for all buttons, just different names of course.The code above is for the NewActivity button.
I believe that's out-of-box behavior and you can't do anything with it. One thing you can try - open a feature request at Connect portal.

Custom button on CRM Mail merge window

I want to put custom button on CRM Mail merge window and on click of that button , i want to store that document in sharepoint site document library.
please check below screen
Is it possible to put custom button?
This is not possible in supported way.
like Andrii said this is not a supported method and i would try and stay clear of this solution if you can. I would suggest thinking about implementing your code for sharepoint into ribbon button inside of Microsoft Word.

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