Is TabDefault the only option for placing a group on ribbon? - outlook

After years of developing COM add-ins, I am now doing a outlook js add-in. So I am newbie to this enviroment.
I have a couple of questions regarding the ribbon architecture.
From what I have read, I believe the TabDefault is the only option for the ribbon group. I am trying to place my ribbon group at a specific location and emulate the COM add-in. For example, for my Outlook COM add-in I can place my options button that pops up a dialog on the TabMail ribbon before group GroupQuickSteps. Is the Outlook ribbon only limited to TabDefault?
I would like to design my ribbon to have one button on the compose ribbon and one button on the read (pop-out) button. Then I would have two buttons on the main ribbon (TabMail). All buttons would perform different functions. Can I define separate logic for each ribbon/window? The only example I see is that Contoso sample app. Kind of confused about the manifest and limitations. Looks like that example pops up on all windows.
Any help is appreciated.
Thanks,
Tom

Web add-ins don't support ribbon customizations you could do with a COM add-in. But web add-ins provide the ability to create ribbon commands. You can read more about them in the Add-in commands for Outlook article.
Add-in commands are supported for four scenarios:
Reading a message
When the user is reading a message in the reading pane or in the Message tab for a pop-out read form, add-in commands added to the default tab appear on the Home tab.
Composing a message
When the user is composing a message, add-in commands added to the default tab appear on the Message tab.
Creating or viewing an appointment or meeting as the organizer
When creating or viewing an appointment or meeting as the organizer, add-in commands added to the default tab appear on the Meeting, Meeting Occurrence, Meeting Series, or Appointment tabs on pop-out forms. However, if the user selects an item in the calendar but doesn't open the pop-out, the add-in's ribbon group won't be visible in the ribbon.
Viewing a meeting as an attendee
When viewing a meeting as an attendee, add-in commands added to the default tab appear on the Meeting, Meeting Occurrence, or Meeting Series tabs on pop-out forms. However, if a user selects an item in the calendar but doesn't open the pop-out, the add-in's ribbon group won't be visible in the ribbon
Using a module extension
When using a module extension, add-in commands appear on the extension's custom tab.

Related

Add ribbon button for Outlook addin in calender-view

Is it possible to add a ribbon button in calender-view for Outlook when an appoinment is selected? Creating a addin with javascript (yo generated)Like the Teams addin does Button in calendar
I have search but couldn't find any example of this. Right now I have 2 buttons when openingn an appointment
Not currently. You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.
When creating or viewing an appointment or meeting as the organizer, add-in commands added to the default tab appear on the Meeting, Meeting Occurrence, Meeting Series, or Appointment tabs on pop-out forms. However, if the user selects an item in the calendar but doesn't open the pop-out, the add-in's ribbon group won't be visible in the ribbon.
When viewing a meeting as an attendee, add-in commands added to the default tab appear on the Meeting, Meeting Occurrence, or Meeting Series tabs on pop-out forms. However, if a user selects an item in the calendar but doesn't open the pop-out, the add-in's ribbon group won't be visible in the ribbon.
See Add-in commands for Outlook for more information.

VSTO Outlook: Place custom group in Outlook Simplified and Classic Ribbon

I have a custom group within the ribbon menu. In classic and simplified explorer view I want to place my group after groups and before find groups, I mean, between groups and find groups. See screenshots. How can I do this?
Classic view:
Simplified view:
I have tried below:
<ribbon>
<tabs>
<tab idMso="TabMail">
<group id="MyGroupHome"
insertBeforeMso="GroupFind"
But it does not work. How can I make my group always visible in all views classic and simplified and even in full screen or not full screen?
UPDATE:
Using insertBeforeMso="GroupContactFind" is working on full screen but when not in full screen (you click on minimize button of the window) then it is only working in classic view but not in simplified view. What's happening?
UPDATE 2:
If I left click on my group in the ribbon, then a context menu appear and there is an option that says "Pin to ribbon", If I select it, then my group is always visible in the ribbon, just what I want, but how to do it programmatically?
Most probably you get an error at runtime and Office hides your customizations automatically. For example, when there is no such MsoId on the ribbon UI you will not get custom UI displayed. So, to track such situations I always recommend enabling UI errors in the host application when developing add-ins.
By default, if a VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear.
To show VSTO Add-in user interface errors
Start the application.
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK.
For Outlook, the Show VSTO Add-in user interface errors checkbox is located in the Developer section of the details pane. For other applications, the checkbox is located in the General section of the details pane.

MS Teams - detect pop-out was opened

I have an MS Teams "Tab" application. It allows creating a Team tab as well as Personal Tabs. Teams has a feature of the "Pop out tab" button, which opens a clon on my app in the pop-up:
Is there a way how can I detect opening the "pop out"? For example, a user opened a file for editing in the tab and I don't want to allow him to edit it from the tab and pop-up simultaneously.
Also, is it possible to pass context/app state to the newly opened pop-out?
Currently it is not possible to detect pop-out was opened in teams and it is by design.
Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future, we also recommend you give your new idea in Teams UserVoice here.

Outlook Add-in: Pinnable Taskpane does not refresh view In Outlook

we have implemented the Pinnable Taskpane by following the article below.
https://learn.microsoft.com/en-us/outlook/add-ins/pinnable-taskpane
This works well in Outlook and OWA both.
Issue: We have 4 Ribbon command button for our Outlook add-in in Read view. We activate the Add-In with one of the button, lets say button A. Once the add-in is activated it shows the functionality from button A. We then pin the taskpane and move around the different messages. while navigating through certain special messages, app view changes and shows the data from the message. This is expected behavior. Once this view is loaded, we can not reset to original view by clicking the button A again on the Ribbon. However if we click button B, it eventually opens up another Task pane instance on top of previously pinned one and navigates to functionality B. The only way it can be reset is to unpin and restart the add-in.
This does not happen in OWA and only specific to Outlook. I ran a test on Outlook 2016 build 9126.2282.
Could someone point out if this is a known issue?

Showing the in-mail add-in bar in Outlook

Feel kinda silly for having to ask, but anyway... I seem to be missing the add-in toolbar shown inside of an e-mail which for instance contains the button to watch an address in Bing maps. The entire bar is missing. I tried finding an option to view it, that doesn't seem to exist (so it cannot be disabled either :)). Also tried making my O365 the only Outlook account since I have a corporate account where add-ins are not enabled.
To be clear; it's the bar as shown in this video by Jeremy Thake: https://www.youtube.com/watch?v=XDBMI9OcqBQ, the entire bar is missing in both Office 365 OWA and the desktop client, from multiple PC's. Other add-in stuff does work, like the Boomerang add-in pane in an e-mail. I sent myself some e-mails with addresses in them (including the sample ones) to be sure it should trigger, but nothing happens. What am I missing here?
From the desktop Outlook client, click File -> Info -> Manage Add-ins. It will launch the Manage add-ins page in the Outlook Web Application (or click the gears icon in OWA and choose "Manage add-ins"). Do you see the Bing Maps add-in listed? If not, click the + icon and select "Add from the Office Store" and look for the Bing Maps add-in.

Resources