Is there any possibility to access the automatic answering function of Outlook out of my humble WinFormsApp (C#)? To activate it directly out of my App for the time of vacations e.g. Really appreciate any ideas! That's what i have but C# doesn't accept the last line:
private void Btn_Click(object sender, EventArgs e)
{
var OLApp = new Outlook.Application();
object OLAssistent = OLApp.AnswerWizard();
}
CodePudding user response:
First of all, the AnswerWizard property is deprecated. Here is what MSDN documentation states:
This object, member, or enumeration is deprecated and is not intended to be used in your code.
Instead, you may consider using EWS
if you deal with Exchange accounts or Graph API
in case of Office365 accounts configured in Outlook.
CodePudding user response:
Application.AnswerWizard
always returns null in the latest versions of Outlook.
Which particular AnswerWizard
method did you plan to use? Most of its functionality can be accessed using other means.