Extend the Attachment Tools Tab with custom button in Outlook Web Add-in - outlook-addin

Is it possible to add custom ribbon button in Attachment Tools Tab , which becomes active only when you select an attachment within a mail?
My objective is to create a functionality where the custom buttons in Attachment tools which can be used to send one or all attachment of the current mail item to a SP site configured.
I am guessing it is part of MessageReadCommandSurface extension point. How do i specify the tab information?

Related

Purge an IMAP folder in Outlook 2016 using VBA

In Outlook 2016 I have connected an IMAP folder. Outlook is configured to mark items as deleted in IMAP folders. This is necessary because I want to process those items, that are marked for deletion seperately. After my macro is completed, that IMAP folder should be purged automatically.
In Outlook there is the ribbon "Folder" with the group "purge". In there is the menu "delete" with an menu item to purge the current folder. I can't find a way to execute the function from a VBA macro.
For Outlook 2010 there is this solution:
http://www.vboffice.net/en/developers/purge-deleted-imap-messages/
In Outlook 2016, the findControl method does not find the required control.
Is there any way to purge that folder?
Best solution would be some kind of API function.
Second best would be to simulate a click event on the control of the ribbon. "CommandBars" seems to contain some sort of context menus but not the ribbon controls.
Is it possible to define custom commandbars with standard controls in it? The control id seams to be still "12771".
I very briefly looked into the UI Automation toolkit but have found no good example of how to access the ribbon of a specific application.
Alternatively: can I get access to controls of the quick access toolbar? Adding the correct purge folder control to the quick access toolbar would rely on the user to click on that button at the right moment.
For buttons you can add to a ribbon or the QAT, the idMso can be seen at the end of the text when hovering over the command.
Sub PurgeFolder_Button_idMso()
' For buttons you can add to a ribbon or the QAT,
' the idMso can be seen at the end of the text when hovering over the command.
ActiveExplorer.CommandBars.ExecuteMso ("PurgeFolder")
End Sub

Outlook mail : option to change mail subject color using vsto

I have couple of doubts regarding Outlook addIns.
I created a ribbon for Outlook application using VSTO.
While sending the mail i call some API and make some db entries.
I keep the mail in inbox even after i sent the mail.
Now i need an option to change the color of that message subject (like indication this is already send. eg : unread mail subject is in bold )
Is there any way that i can achieve this ?
The ribbon i created is showing under Add-ins menu.
i wated to show this in Home itself.
I tried tab idMso="TabHome", TabMail etc but its not working (i am using office 2010)
You would need to modify the view setting based on some condition - look at an existing Outlook views that bold the unread messages and display overdue messages in red.

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

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.

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]

Automatically insert email signature into Outlook Meeting Invite

I have been searching the web for a way to do this but no such luck. My goal is to save a meeting agenda template into an email signature which would be inserted into every meeting invite created by me.
Looking for some clues on how to do this?
Outlook 2010 and newer include the form designer.
File -> Options -> Customize Ribbon, then, in the Right Side pane, click to turn on the Developer Tab.
From there you can design Meeting Request template to your specification.
Then, to use it, you will select:
New -> Meeting Request Using -> (Your Custom Template) from the Outlook Home tab.
You can handle the ItemSend event of the Application class where you can check out the message class of the outcoming Outlook item and change the message body if required.
Think you will find the Getting Started with VBA in Outlook 2010 article helpful.