For example, how do I show or hide the Outlook envelope icon from an Outlook Rule?
The envelope icon option is set by going to:
Tools -> Options...
E-mail Options
Advanced E-mail Options
Show an envelope icon in the notification area
The reason why I say programmatically is because none of the standard Rule actions apply. (The "Clear the message flag" action doesn't seem to work. Also, there's no "Set the message flag" action.)
This means that the solution will probably be in the form of a VBA script, Add-in or custom action. As a last resort, I'll write my own task bar notification.
In the documentation, I found IMsoEnvelope, but that is only for sending email from other Office applications.
The action is "Clear the message flag"
Related
I was wondering if there was a way to for url in an outlook item and retrieve them to use them later.
I have a MessageReadCommandSurface add-in, but I only found a way to highlight them using a contextual add-in. Here's the documentation for that: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/contextual-outlook-add-ins.
Is there any event for newly opened Read command surfaces?
First of all, let's realize that Outlook web add-ins work under the context of the currently selected item only in Outlook. So, each time you select an item your contextual add-in must re-evaluate conditions to activate.
You may also consider implementing a pinnable task pane where you could handle the ItemChanged event. See Implement a pinnable task pane in Outlook for more information. So, if the take pane was loaded and pinned you can just handle the ItemChanged event and process a newly selected item with relying on contextual activations.
The event-based activation can also be helpful depending on your demands. See Configure your Outlook add-in for event-based activation for more information.
If none of the provided options suits your needs I'd suggest filing a feature request at https://aka.ms/M365dev-suggestions .
My Teams application supports both "personal tab" and the "teams tab". Is it possible to trigger "add app" dialog in a way that it pre-selects "add to teams" option?
One can trigger this dialog using this deep link for example:
https://teams.microsoft.com/l/app/49e6f432-d79c-49e8-94f7-89b94f3672fd
BUT, this always brings up a tab "add app". If the app is already added this does not make sense (it shows "open") but I would like to show "add to tab" option instead.
Would like to have sort of a parameter for that url maybe?
Currently it is not possible. you can submit a feature request on Microsoft user voice.
I have created a vsto Addin where I want to show a Ribbon control on Inbox window and when the user clicks reply in same window(not in pop out window).
I was able to set the addin to load on Outlook compose and reply pop out windows.
I tried to set the property controlId as TabMail and selected RibbonType property (selected everything, just tried hopping one of those will work )
Any one have a solution
Do you get any Ribbon UI errors?
By default, if an 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
1. Start the application.
2. Click the File tab.
3. Click Options.
4. In the categories pane, click Advanced.
5. 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.
Most probably the TabMail id doesn't exist in all contexts and you get an UI error. So, a custom UI is not shown finally. Am I right?
In office applications i want to get the word on which the user right clicks.
i was able to get for Excel and Word. in outlook and PowerPoint i am not able detect the right click event.
In outlook i want to detect right click on a word in mail body.
In power point i want to detect right click in a slide content.
In outlook i have tried the events:
ItemContextMenuDisplay,
AttachmentContextMenuDisplay,
FolderContextMenuDisplay,
ContextMenuClose,
StoreContextMenuDisplay,
ViewContextMenuDisplay,
In power point i have tried:
WindowBeforeRightClick,
can somebody help me with the events to be used?
I will try to answer the Outlook part.
The Outlook object model doesn't provide any events for that. The only possible solution is to add your control to the context menu and handle the getVisible or getEnabled callbacks. Thus, you will be aware when the context menu is going to be displayed. But it seems MS doesn't provide the required IDs for that menu, see Extending the User Interface in Outlook 2010 for more information.
See Office 2013 Help Files: Office Fluent User Interface Control Identifiers
In the case of PowerPoint, WindowBeforeRightClick is the correct event.
You would find that setting Cancel = True in the handler for that event only works if the right-click is on the slide itself. On a shape or within a text range this fails to work as expected.
Workaround is the lock the screen and switch to a different view and back and then update the screen to prevent the contextual menu from appearing for the shape/text range.
I created a few rules for Microsoft Outlook 2010, that specific mails go to specific folders. This works fine, but I don't get an alert in system tray when I have new mails.
Is there a way to fix this?
According to the sources I've listed below, this seems to not be possible, and it seems to be expected behavior of MS Office since 2007.
http://answers.microsoft.com/en-us/office/forum/office_2010-outlook/show-an-envelope-icon-in-the-taskbar-and-play-a/7c5608af-dca4-46c7-ad40-bd959a2c1402
http://www.msofficeforums.com/outlook/6140-modifying-rule-show-new-mail-envelope-task.html
http://www.howto-outlook.com/faq/missingenvelope.htm
I would love for someone to prove me wrong, because I would like to have an envelope as well. Wish MS would at least give an option to turn this setting on and off.
It is possible with an additional rule.
Open the Rules and Alerts dialog;
Outlook 2003 an Outlook 2007: Tools-> Rules and Alerts… (press OK if you get an HTTP warning)
Outlook 2010: tab Home-> group Move-> button Rules-> Manage Rules & Alerts…
Outlook 2013: File/Home -> Manage Rules and Alerts
Button New Rule…
Select "Start from a blank rule" and verify that "Check messages when they arrive" is selected.
Press Next to go to the Conditions screen.
Verify that no condition is selected and press Next.
A warning will pop-up stating that this rule will apply to all messages. Press "Yes" to indicate that that is correct.
Select the action "display a Desktop Alert".
Press Finish to complete the rule.
If needed move the "display a Desktop Alert" rule all the way to the top.
Source: https://social.technet.microsoft.com/Forums/office/en-US/df4b0309-beb0-4eb8-9e90-e06214e5c1bf/notifications-envelope-not-showing-for-subfolders-using-rule-move-to-folder?forum=outlook
I just added the Outlook 2013 part, because this old question/problem is still relevant in the current version where I use this mechanism successfully.