Changing Account with "on-send" feature? - outlook

I have a customer with multiple users, they have two emails accounts on two differents domains.
One is managed by Office365 : Teams / Calendar, example : #my-business.com
Second is for "secure" communication, exemple : #my-secure-email.com
The second one is really not used very often but the emails sent or received must absolutely not go on Office365 (legal reason)
I want to force user to send emails to *.#my-secure-email.com with second account.
With "on-send Feature" i think i can "block" emails but ideally it should be possible to dynamically change the account used in Outlook according to the recipient's address ?
EDIT to clarify :
Is it possible to change sender account with office-js and "on sender" feature on office365 ?
Is it possible to change sender account direclty in Outlook for Windows based on recipient address ?
Thanks
Guldil

Is it possible to change sender account with office-js and "on sender" feature on office365 ?
No, it is not possible. OfficeJS doesn't provide anything for that.
Is it possible to change sender account direclty in Outlook for Windows based on recipient address ?
Yes, you can choose the sender's account in Outlook manually or by using a VSTO add-in instead. The MailItem.SendUsingAccount property is available in the Outlook object model (available for VBA macros and COM based add-ins). The property allows setting an Account object that represents the account under which the MailItem is to be sent.
But web add-ins work under the context of currently selected item only (or in case of UI-less add-ins what they activated for) and don't provide access to application-wide features like choosing email account to send from.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team go through the planning process. Use the github label: Type: product feature request at https://aka.ms/M365dev-suggestions .

Related

VSTO Outlook: Define custom actions for contacts that satisfy some conditions

I would like to know if it is possible to associate some customs actions for contacts that satisfy some particular conditions. For example, if the contact has Linkedin profile specified, i would like to show it in its contact window. I don't know if contact window allows such type of customization or not. I have tried it but I haven't been able to achieve it. Could you confirm if such level of customization is possible?
Below an screenshot of the window I am interested in:
You can create a form region in Outlook where you could display the required information about the contact item. Read more about Outlook form regions in the Walkthrough: Design an Outlook form region article.
If that information is absent on the contact item you may prevent the form region from displaying, see How to: Prevent Outlook from displaying a form region.
Be aware, Outlook has already delivered a solution for integrating contacts with LinkedIn profiles. The LinkedIn Outlook Connector lets you add your LinkedIn account to Outlook and displays your connections in the Contacts section of the application. It also provides ways to add new connections through email, and keeps you up-to-date with the status updates of your connections. You can remove the add-in if you no longer want LinkedIn integrated with Outlook.
Read more about social connectors for Outlook in the Outlook Social Connector 2013 provider reference section.

How to get itemId of the item you are replying/forwarding to using Office-JS

Is there a way to get the itemId of the item you are replying/forwarding to in compose mode using the Office-JS library or EWS? I want to be able to get the itemid of the email or meeting invite that I am replying/forwarding.
OfficeJS doesn't provide anything for that. Basically your add-in is run under the context of a specific item in Outlook (currently selected). The best what you could do is to use EWS by calling Office.context.mailbox.makeEwsRequestAsync or Graph API (for Office365 users). You may take a look at the EWS - Determine if an e-mail is a reply or has been forwarded thread, you are interested in getting the In-Reply-To field. Note that In-Reply-To is an optional field so it may not always be populated.

Can Microsoft Outlook Policy Tips be used in conjunction with add-ins REST/EWS send API?

I have a scenario where a "compose mode" add-in for Outlook makes a subject line update to the draft email, then sends the email. The send action is currently carried out using either the EWS or REST APIs.
The issue occurs when a "override" policy tip is configured by the Exchange admin. The policy tip in question requires the user to choose override, in certain cases, to send an email (e.g external communication).
During message composition, if the appropriate trigger for the policy tip occurs, the policy tip appears and offers the user the option to override (as expected). When the add-in action is called, via ribbon button, the email appears to be sent. However, moments later an automated message from the Exchange indicates that the email has not been sent due to not adhering to the policy rule.
I believe this occurs because the send API, for both EWS and REST, does not call a local function in the Outlook client. Rather these API actually perform the send event on an email item syncedto and stored on the server. The Exchange server has no knowledge of the user's selection to override the policy tip at the client, so the issue occurs.
This happens in both Outlook on Desktop and Outlook Web Access.
I have searched through the EWS and REST APIs and cannot find any way to share/indicate the policy tip override when using these API.
I have searched the add-ins developer documentation and can find no mention of policy tips at all.
I have searched the Exchange admin policy tips documentation and can find no mention of add-ins compatibility or add-in related behavior.
So, can Microsoft Outlook Policy Tips be used in conjunction with add-ins REST/EWS send API?

Setting Activity Category on Email tracked from Outlook to CRM

I'm using Dynamics CRM 2015 (7.0.2.53) and Outlook 2016 (16.0.7766.7080) with the CRM for Outlook (7.1.1.3113) addin.
What I am trying to achieve is to give users the ability to specify an Activity Category against an email which they Track and Set Regarding from Outlook.
Currently, upon tracking and setting regarding on an email in Outlook, an Email Activity is created against the specified Entity record (let's say an Opportunity) in CRM, which is fine. The problem is that I cannot find any way to allow the user to specify an Activity Category for that created Activity either during the Track/Set Regarding process, or even after the Activity is created in CRM.
Is what I'm trying to achieve possible and if not, is there any other way to achieve a similar result, so that users can specify some value from a set of options against an email when they track it from Outlook to CRM, so that value can then be used for reporting purposes?
Basically there is no way of adding some custom functionality to Tracking Emails from Outlook. So you cannot add anything in Outlook plugin that will allow you to perform some operation on CRM side to set the Category right.
You can always make a plugin/workflow on Email creation in CRM and based on some email properties (topic, content, recipients etc.) set this category by youself - but of course users still will be unable to change it.
When email is created in CRM, it's disabled (because it usually already has been sent), but you can still modify it using workflows and dialogs. So you can always create a Dialog (https://msdn.microsoft.com/en-us/library/gg509010.aspx) and there you can prompt for proper category and set it on the email. So I can see a scenario like that - you have a view of Emails that are not categorized (or a Queue, where you put them in a plugin when user is tracking email from outlook). You pick Email, click "Start Dialog" which will be called "Set Category" or whatever, and set the category. Of course after this operation Email will vanish from the view. You can always create a reminder for the users to set the category for their mails, this should be included in new users training etc. Without any hardcore custom coding I think that's the only thing you can do (because if you don't mind writing more complex stuff you can always prepare some custom HTML5 control on Email form that will allow you to set the category field).

microsoft outlook how to send an email from an email group which I belong to?

I belong to a email group in the company I work for, such as for example, researchteam#company.com. My personal email is raulmercado#company.com. I want to send emails from researchteam#company.com instead of raulmercado#company.com. I'm using Microsoft Outlook and Exchange as a Email Server.
Thanks for your help!
If you using Outlook 2010 then you could try MailItem.SendUsingAccount property.
Here is an example
Exchange always sends out all emails coming from the default email address. And for each Exchange mailbox this default address is fixed and can not be changed in Outlook. You can use one of two options:
You can create an additional mailbox in Exchange for the second address (as the default email there of course) and then give your normal account "Send-As" rights for that new account. Then you can switch on the "FROM" field in Outlook (right-click options > Show Fields > From) and use that field to select the account you want to send from. In Outlook 2013 you can also just connect to the additional Exchange account and might get slighly easier switching.
You can use a 3rd party tool like ChangeSender (http://www.servolutions.com/changesender.htm) to get automatic switching of the accounts when you answer email (answered automatically with the account the email was received under).
Hope this helps - Claus

Resources