Is there a way to add an Outlook additional mailbox store? - windows

I am trying to create a script that will recreate the outlook profile. Currently I am looking for a way to add additional mailboxes via the Outlook com object, since not all mailboxes can be added via automapping.
Unfortunately I have not found an approach on the internet. Is there any solution at all?

The Outlook object model doesn't provide anything for creating mail profiles. You may consider using a low-level API on which Outlook was built. See Programmatically create a profile in Outlook for more information.

Outlook Object Model does not expose that functionality. You can either use Extended MAPI (C++ or Delphi) to add a properly configured instance of the "EMSDelegate" MAPI service, or use Redemption (any language, I am its author) - it exposes RDOSession.Stores.AddDelegateExchangeMailBoxStore method.

Related

VBA vs. VSTO vs. Office.js vs. MS Graph vs. MS Flow

I have Outlook 2016 using Hosted Exchange. Here's what I need to be able to do:
Add Outlook tasks automatically when adding a contact via a custom form.
Send a premade .doc, .html, or .mshtml file via email to a set of contacts.
Keep track of who has received what premade email
I have some JS experience, but I'm not afraid of getting into .NET or VBA. I'm leaning towards VSTOs because, from what I've read, Office.js doesn't seem to allow for much interoperability between, say, Word and Outlook.
Any advice would be greatly appreciated.
From what you describe, I would step outside of Outlook all together and use theMicrosoft Graph API. Using Graph you could wire up a Webhook so you can capture when a new Contact is added and then send an email with a file attachment. You could then use Extended Properties to tag each Contact with the document/email they received.
I would also suggest taking a look at Microsoft Flow. For workflow scenarios like this, it may be a better fit.

Accessing Appointments in Outlook without ActiveX

I'm currently working on a project where I'm sending and updating Appointsments. I would like to do this without the use of ActiveX since I don't want to be limited to IE. I've been googeling for quite some time now, but I couldn't find anything that helped, so here's my question. Is there any way I can access or update appointments without the use of ActiveX.
We also have access to the OutlookWebApp, so maybe there's an interface there. Would be great if someone had an idea. Thanks in advance and
Greetings Chris
You can use Exchange Web Services (web or desktop app) or the EWS Managed API (desktop app only) to access data in Exchange Mailboxes: https://msdn.microsoft.com/en-us/library/office/jj162981.aspx.
If you are working with Office 365 mailboxes you can use the Outlook REST or Microsoft Graph APIs: https://dev.outlook.com/
If your solution requires a UI in Outlook Online (OWA) then you can access contextual data (i.e. the current email or appointment) with an Outlook Add-in (you can use EWS requests from it as well): https://dev.outlook.com/reference/add-ins/

Could EWS Managed API handle outlook form?

I have 2 questions below, could you help me?
Since Exchange 2016 has dropped MAPI/CDO, and we’re suggested to use EWS instead. I want to know, could EWS can handle outlook form, because we want to use EWS Managed API to install outlook form(we have created this form manually already) to user’s mailbox as a message. If not, is there any other recommend solution or SDK?
If we have a .msg file, could we use EWS Managed API to create a Email Message by using this .msg file on disk?
Thanks very much. Hope for your response.
Exchange 2016 dropped support for the standalone version of MAPI/CDO 1.21. It still fully supports Outlook and RPC-over-HTPP and MAPI-over-HTTP.
I don't think you can either install a form or process an MSG file using EWS alone.

Outlook 2013 Custom Fields - Embed data in "content"

I've just discovered that you can make custom forms in Outlook 2013. Now, we currently use two calendar apps, one which is very specific to our business needs and the other is Outlook 2013 (Office365). We currently sync some events, but not all, since the extra events don't have any place in Outlook as they'd be missing a tonne of relevant data, or it just wouldn't be readable.
Is it possible to "embed" this data in the content of a custom form, then read this using VBScript/some other method? If we could do this, then it would make the readability of the bespoke events in our business calendar a lot easier. I cannot find anything on this online (probably because I don't know exactly what to search for). I do not need the outlook version to update the business calendar.
For example, data might look like this
{"primaryGroup":"01-XUA-AL","eventName":"Customer Request 192"}
Outlook custom forms is a relatively old technology. I'd recommend using the Outlook form regions for customizing the UI. See Creating Outlook Form Regions for more information.
You may embed a custom information into user properties. They are preserved if the corresponding properties are defined on the recipient Inbox. See Changes to custom properties in Outlook for more information.

Can you assign a task to a contact using exchange 2010 EWS Managed API 2.0?

I'm struggling to find a way to assign a Task that I'm creating using the EWS Managed API 2.0 to an existing contact. Is there a way to do this using the API?
For appointments, you can add an Atendee to the RequiredAtendees collection. Is there something similar to this for Tasks?
Thanks.
No, EWS does not support assigning tasks. You can access a user's mailbox either as a delegate or via impersonation and create Tasks in their Task folder, but you can't create one in your mailbox and assign to someone else.

Resources