Outlook Web Add-in: Can we add an entry into context menu? - outlook-addin

I didn't find this functionality in Outlook web add-in documentation. But it's worth to ask...
We want to add a new entry into Outlook right click menu (context menu), so that it can open a hyperlink (url is different based on what you highlighted) to integrate with our web portal.
I understand contextual outlook add-in is the closer solution.
But it's not the user experience we want.
Instead of highlight everything based on RegEx, we would like to support users to intentionally trigger the add-in by highlighted keyword and right click on the context menu.
Wondering if it's possible today for the latest Outlook desktop app.
User scenario:
User highlights a keyword in email reading/writing mode
User right click the mouse
The context menu shows up with having our custom menu item
When user clicks on our custom menu item, it opens a browser with an url based on what user highlighted.

Outlook context menu cannot be extended at the moment. Available extension points are:
MessageReadCommandSurface
MessageComposeCommandSurface
AppointmentOrganizerCommandSurface
AppointmentAttendeeCommandSurface
Module (Can only be used in the DesktopFormFactor.)
MobileMessageReadCommandSurface
Events
DetectedEntity
You probably should add your business case into Office development user voice request: Outlook Web Add-in: Add Context Menu Mail Item Extension Point or at least upvote it.

Related

How to access "message bar" in Outlook?

When I enable "Out Of Office" automatic messages in Outlook 2010, the "message bar" is filled in with a warning text. I would like to use such a feature to inform the user of my own feature being enabled.
I cannot find any reference to programmatic access to this bar. I found something about the statusbar, but it is not usable in VBA in Outlook.
I am not even sure the proper English name of this feature is "message bar"; I am referring to the same bar which in Word is used to inform user that a document is "dangerous" because coming from internet.
Is this message bar exposed in VBA for Outlook?
I tried finding other methods to inform the user, so I started studying the Ribbon: if I could make my own tab visible I could use it as a "message bar", but Ribbon is managed by Outlook differently from other Office programs, so most of examples available around are not applicable/working in Outlook.
I was able to programmatically create a tab and add a button to it, but then I can't make the tab visible.
I also tried using property "position" of the commandbar: not just msoBarTop but also msoBarBottom or msoBarPopup, but Outlook ignores my efforts.
But maybe managing the Ribbon in Outlook with VBA should be addressed in a separate question (there are some questions about it here, but I could not find useful tips for me; I have no access to VB VSTO).
The area you are referring to is used to implement Mail Tips. Although you can create custom ones through the Exchange Admin Center , they cannot be interacted with via code.
Manipulating Ribbon controls to show states or user messages is not really recommended, as the Ribbon is generally a static thing (except in case of menus, dropdowns and Galleries).
If your goal is to show a transient alert, a better approach would be to use the Windows SDK to show Windows notifications. If having your alert hosted in Outlook is of the utmost importance, then look into using Form Regions or an add-in with Task Panes to display your messaging. Or even a simple VBA MessageBox or User Form.
Also note that your usage of the CommandBar is really only applicable to Outlook 2007 and earlier - there are no more CommandBars in newer versions, just the Ribbon.

Can we open task pane from the dialog window in Office js?

Is there a way to open task pane from the dialog window in Outlook?
We perform the login operation in the Dialog window, however, by the nature of the add-in the Login is directly prompted from the ribbon. Hence, the user does not realise that there is a task pane where more customizations are possible. We want to open the taskpane post login (without requiring the user to click the icon on ribbon)
Currently the you requested, is not a part of the product. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered when we go through our planning process.

Outlook add-in button on calendar overview

Is it possible to add a button to the command ribbon for the calendar overview in outlook. The PrimaryCommandSurface extensionpoint doesn't seem to be supported in Outlook add-ins. Adding a button to the appointment edit window isn't enough, because I need to perform an action for the whole calendar.
Currently the feature you requested, Outlook add-in button on command ribbon for calendar overview, is not a part of the product. However, we track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered when we go through our planning process.
[Outlook Add-ins Engineering Team]

Custom View for my plugin in Outlook 2010 / 2007

I'm working to load my WPF control into outlook as a plugin. The only way it allows me to do is to add a custom task pane (which works perfectly fine), which is kind of hard at the UI. To maintain Outlook consistency, I would like to add my own view in the right-view of Outlook, so if the user clicks on some item in the navigation pane, I show my view. This would allow me to show Outlook data in my custom implementation to enhance the UX.
Can someone please let me know how to do this?
-Fahad
Fahad,
Please google up "outlook form region". This sounds like exactly what you need - create your own form region (using outlook's developer tab) and re-register a specific mail for that.
example:
reg.Create(HKEY_CURRENT_USER, _T("Software\\Microsoft\\Office\\Outlook\\FormRegions"))
Best of luck!
Nili

Show Outlook Advanced Find dialog from .NET

When using Outlook 2007 or 2010 you can bring up the Advanced Find dialog by pressing Crtl+Shift+F.
I have performed advanced queries against Outlook contact items and calendar items, but would like to show Outlook's native dialog box for users to perform more advanced searches instead of trying to recreate that dialog box within my app.
I've searched, but have been unable to find details on how to show that dialog box from within a .NET application.
Not sure why I didn't get the Tumbleweed badge for this question, but I got the answer over on the MSDN forums.
http://social.msdn.microsoft.com/Forums/en-US/outlookdev/thread/fe1b7a52-18a3-47d2-a1eb-c22f5c57d454
The Advanced Find dialog is not exposed in Outlook's object model and therefore cannot be called from a .NET app.
So, I'm working on re-creating the dialog box in WPF.