I am developing a little outlook Add-In, wich gives the option on the appointement-contextmenu to automatically fill out and set the start/ end the of the out of office message. I have managed to extend the contextmenu and get the start-/ endtime of the chosen appointement.
Now I would like to know, how that I can access the out of office template.
The Outlook object model doesn't provide anything for that.
You may find the Automating Out of Office in Outlook (VBScript) sample code helpful. Consider using EWS, see EWS Managed API, EWS, and web services in Exchange for more information.
Related
I want to create a winforms application that should show the calendar of an Outlook user and allow me to modify it (create events,..).
My end goal will be that I have all Outlook calendars of my colleagues (5) in a simple GUI.
I haven't found much documentation about this so I was wondering: is this even possible?
Are there API's or other documentation that could help me commence?
It is possible using Exchange Web Services if on-premise hosting or Microsoft Graph with hosting in the cloud.
on-prem: https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/start-using-web-services-in-exchange
graph / REST API: https://learn.microsoft.com/en-us/outlook/
I'm trying to integrate our (C#) WPF application with 2007 Outlook Interop. I've got it working as it should, but I'm getting the security warning. I know that using Redemption is an option to "get around the bush," but I don't want to just get around the problem, I'd like to somehow allow access via credentials or something. This isn't an add-in. I'm simply using the interop to interact with the users client session of Outlook.
Is there anything that I can do to create some credentials that I can pass through from my app to prevent the security warning from showing up when my application is accessing the Outlook session?
Thanks!
The only way to disable the security prompt is to have an up-to-date AV app installed. If you cannot control the environment, then it is Extended MAPI (C++ or Delphi) or Redemption (any language).
You can also move your Outlook related code to a COM addin (addins are trusted).
I am trying to write an Add-in to Outlook 2016 and I want server-side rules (Transport rules, aka Mail Workflow) to be applied to my Outlook email locally not on Exchange online. The concept of My my Add-In is next: download server-side rules , apply to an email and send it.
The maximum I have achieved was connecting to Exchange Online server and using Get methods in PowerShell to download server rules. I did not find related API only old VBA Outlook 2007
Is there any API to do so? Are there any other ways to do so?
AFAIK there are no automated ways to convert or export transport rules to client/Outlook rules. However, the Outlook Object Model (OOM) has good support for creating and managing Outlook rules via VBA, a COM add-in or a custom desktop application using OOM. The actions and conditions may not be 100% identical but you should be able to convert the majority of rules. See: Managing Rules in the Outlook Object Model.
I need to import 3 different folders of Outlook 2013 contacts into Dynamics CRM Online for one of our clients. I cannot use the CRM Online Outlook connector because the CRM account I need to import them with is not the same as the AD credentials of the machine I need to import them with. I also want to avoid any side effects from
I cannot export the data to a .csv file and import them in CRM Online because the data is quite mangled after the export, with excess linebreaks, sometimes multiple in 1 field. So I need to use an external application for this, which need to get the proper contacts in Outlook, parse them to CRM contacts, and then insert them.
I have 5 folders of contacts in my Outlook 2013 contacts tab, but only 3 of them are the client's. the rest may not under any circumstances be imported. How can I extract ONLY these 3 folders from my contacts tab while leaving the rest where they are?
You need to write code to retrieve the Outlook contacts. You can do this in C# using the Outlook Interop libraries. Given that this is a one-time task, I'm assuming, I would just use a Console application. Unless you are experienced with the Outlook Interop library you'll probably need to do some trial-and-error work. I usually find this is the case when writing against the Office libraries.
Examples can be found at:
Specifically about contacts: Get Outlook contacts into C# form-based application
Not specifically about contacts but when combined with the above answer should get you close to a start: Can I read an Outlook (2003/2007) PST file in C#?
Information on adding the Office Primary Interop Assembly that you'll need: http://msdn.microsoft.com/en-us/library/15s06t57.aspx
I want to create an Outlook Add-In that will forward an email to a document library in SharePoint 2010. I've started off by using the Outlook Add-In template and have so far created the ribbon interface and button. This works fine and I can see it in Outlook and click on the button.
The next bit is where I am a little lost; I've added a reference to the SharePoint.dll but I cannot access it in the Outlook - ThisAddIn.cs. Is this not possible or am I missing something?
The solution is to select an email, click on the button that I have created on the ribbon within Outlook, this will load a list of Companies that the email can be associated with via a listbox in SharePoint and then strip and upload the data.
I'm competent in the retrieving and adding information to SharePoint but have never done this in an Outlook Add-In.
I am new to VSTO development so any pointers would be much appreciated.
Thanks
I've added a reference to the SharePoint.dll but I cannot access it in the Outlook
You can only use the Microsoft.SharePoint.dll object model from code actually running on the SharePoint server - not on remove PC's such as your users PC's.
Instead you need to look into SharePoints Web Services or the Client Object Model.