Hi everyone.
We have several users that works for 2 of our companies (approximately 80/20).
Therefore we've created a shared mailbox for each of them to use when responding to mails from the second company and to book meetings from, using our own CRM system.
These mailboxes have been created with AutoMapping enabled.
Some of our users have then added the mailboxes to their Outlook profile, using the Add Account function in Outlook because this enables then to set up a signature for that account (this you cannot do with an automapped mailbox).
However this results in the meeting appointments being send from the primary mail account every time when the appointment is created from within our CRM system, using the following code:
Dim appOutlook As Outlook.Application
Set appOutlook = GetObject(, "Outlook.Application")
Dim nsTemp As Outlook.NameSpace
Set nsTemp = appOutlook.GetNamespace("MAPI")
Dim recTemp As Outlook.Recipient
Set recTemp = nsTemp.CreateRecipient("<e-mail address of shared mailbox>")
recTemp.Resolve
Dim folTemp As Outlook.Folder
Set folTemp = nsTemp.GetSharedDefaultFolder(recTemp, olFolderCalendar)
Dim appTemp As Outlook.AppointmentItem
Set appTemp = appOutlook.CreateItemFromTemplate("<path to template>", folTemp)
appTemp.Display
If I then remove the AutoMapping from the shared mailbox, the code works as expected and the meeting appointments are sent out as the secondary mailbox.
We run Outlook 2016 (patched in august 2016) and Exchange 2010 SP3.
Anybody got a solution to this that doesn't require AutoMapping to be disabled?
Regards, Martin