I'm creating an add-in that detects fraud in emails with in the body using AI. So I need run every time the user open an email. I didn't find anything on events. The Context add-in seems to not be usable in this scenario because of the dependency on regular expressions. I wanna know if someone knows another approach to this use case.
Currently the feature of event based activation of add-ins in read mode, is not a part of the product. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process. For more details on event based activation of add-ins you can read here.
There is no way to activate add-ins automatically for a selection without contextual conditions triggered (regex and etc.).
Related
i want to display a message to the user (as an infobar for example) as soon as the user opens the mail. In the 'supported events' list i could not find an appropiate eventlistener that fires when a mail is opened. Does this event even exist? If yes, what is the name? If no, how else could i possibly achieve this task? It is a priority that i display an infobar and not set a category or any workaround like that.
Thanks in advance
I tried finding an appropiate eventlistener but could not find it.
Outlook activates some types of add-ins if the message or appointment that the user is reading or composing satisfies the activation rules of the add-in. The user can then choose the add-in from the Outlook UI to start it for the current item.
To have Outlook activate an add-in for specific conditions, specify activation rules in the add-in manifest by using the Rule elements. Read more about possible rules and workflows in the Activation rules for contextual Outlook add-ins article.
Note, 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.
It's my first time developing add in for outlook, i'm tryng to do an add-in that interact with outlook calendar to find an appointment, but i can only show up the add-in when i create new appointment, is there any way to show it outside compose and read context? like viva insights do?
i found that this can be done with VSTO, but i need it to work also with web outlook and other os, if someone can help me to figure it out i will apreciate.
i tried to do it following the add-in doc
https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points
i can't find an extension point that fits my purpose.
Thank you
Add-ins are only valid in Mail/Calendar individual item context currently. Hence, if no item (email / event) is selected, addins do not show-up or work - it does not know in which context it is suppose to run.
If your scenario requires it to run without email/event context, we suggest you to file a feature request here: https://aka.ms/M365dev-suggestions
I've been trying to activate my add-in when the user open his email so I can analyze it. I found one example in on add-in from another company (Retruster). The issue I didn't found way to reproduce the action. Someone knows how to reproduce this event? Because I just found when sending a message.
The labels shown on the YouTube video are categories set on emails. They can be set on the Exchange server side when your message arrives without any add-in involved. Remember, add-in activation rules are described in the manifest file - it can be regex filters, known entities etc. Read more about them in the Activation rules for contextual Outlook add-ins article.
The add-in starts working when the user clicks on the ribbon button.
I want to know if there are ways to customise the outlook (2013) mail exchange client. Ultimately, I want to, if possible, have an extra field when viewing the mail, e.g. after received time, a field called 'category'.. user selects from dropdown, sales or other. Ultimate I'd want to be able to add the value to the extended property of the mailitem object. I have experience using Exchange Web Services and coding in C# and Java but have no idea if the above is possible (custoomising the outlook interface, not just menu customisation) and if so what languages/tool are best used.
Any suggestions apopreciated.
Sure, you can do that. But you can use built-in Outlook categories (which you can extend by adding your own ones).
I am trying to build a new add-in command (button) to add to the Home tab in the Outlook ribbon. This is easy enough to do, but my organization also wants to target the button based on properties in one's Active Directory profile (specifically department). Is this possible? Thank you so much!
This is pretty straightforward with desktop office add-ins (like VSTO). All you need to do is basically to get information about the currently logged in user organizational unit from the active directory, and then show/hide/modify buttons depending on this information.
From the tags on your question, it looks like this is NOT what you are looking for (please correct me if I am wrong)? The fact that you added "office365", probably means that you are interested in javascript (cloud/browser/store) solution?
For javascript-based add-ins, the part where you get the user department from its profile was impossible until recently. Now you may check out the Single-Sign-On API (added last year). It provides you information from user's Azure active directory profile, meaning that your organization is supposed to be part of it.
Another difficulty could be, dynamic display of the related buttons (showing/hiding/enabling/disabling) (I may be wrong, but it looks like it is still not supported for javascript). You can try to create a workaround for that by building a custom task pane instead (you can do whatever you want on your task pane)
--- update ---
In case of .NET VSTO add-in, you can get user groups using:
UserPrincipal.Current.GetAuthorizationGroups()
Then you can control which buttons/controls to show/hide by providing callback function(s) in your code and in your ribbon interface definition file (you need to define Ribbon using XML, not with UI designer). There are callbacks available like getVisible, getLabel, etc.