M
Michael Zino
Hello,
I am developing an Outlook addin using Redemption.
I am trying to add recipients to the Outlook AppointmentItem as follows:
Dim oSafeAppointment As Object
Set oSafeAppointment = CreateObject("Redemption.SafeAppointmentItem")
oSafeAppointment.Item = m_oAppointmentItem
'Note: m_oAppointmentItem was retrieved from OOM
'The following is not working; "Resource1" and "Resource2" are being added
to the appointment but can't be resolved
oSafeAppointment.Resources = "Resource1;Resource2"
oSafeAppointment.Recipients.ResolveAll
'The following is not working as well
Set oSafeRecipient = oSafeAppointment.Recipients.Add("Resource1")
oSafeRecipient.Type = olResource
oSafeRecipient.Resolve 'The problem is that "Resource1" isn't being added to
the appointment
"Resource1" and "Resource2 exist and are being resolved automatically when
they are being added manually through the Outlook UI or when using the
following code:
m_oAppointmentItem.Resources = "Resource1;Resource2"
m_oAppointmentItem.Recipients.ResolveAll 'succeeded with security alerts
Additionally, when I am using MAPIUtils and creating
SafeRecipient--"Resource1" is resolved. But it can't help me, and I wrote it
just to make sure that the problem is not Exchange related:
Dim oSafeRecipient As SafeRecipient
Dim oUtils As Object
Set oUtils = CreateObject("Redemption.MAPIUtils")
Set oSafeRecipient = oUtils.CreateRecipient("Resource1")
If oSafeRecipient.Resolved = True Then
Debug.Print oSafeRecipient.Name & "Resolved=True; Address=" &
oSafeRecipient.Address
End If
Please advise.
Regards,
Michael Zino
I am developing an Outlook addin using Redemption.
I am trying to add recipients to the Outlook AppointmentItem as follows:
Dim oSafeAppointment As Object
Set oSafeAppointment = CreateObject("Redemption.SafeAppointmentItem")
oSafeAppointment.Item = m_oAppointmentItem
'Note: m_oAppointmentItem was retrieved from OOM
'The following is not working; "Resource1" and "Resource2" are being added
to the appointment but can't be resolved
oSafeAppointment.Resources = "Resource1;Resource2"
oSafeAppointment.Recipients.ResolveAll
'The following is not working as well
Set oSafeRecipient = oSafeAppointment.Recipients.Add("Resource1")
oSafeRecipient.Type = olResource
oSafeRecipient.Resolve 'The problem is that "Resource1" isn't being added to
the appointment
"Resource1" and "Resource2 exist and are being resolved automatically when
they are being added manually through the Outlook UI or when using the
following code:
m_oAppointmentItem.Resources = "Resource1;Resource2"
m_oAppointmentItem.Recipients.ResolveAll 'succeeded with security alerts
Additionally, when I am using MAPIUtils and creating
SafeRecipient--"Resource1" is resolved. But it can't help me, and I wrote it
just to make sure that the problem is not Exchange related:
Dim oSafeRecipient As SafeRecipient
Dim oUtils As Object
Set oUtils = CreateObject("Redemption.MAPIUtils")
Set oSafeRecipient = oUtils.CreateRecipient("Resource1")
If oSafeRecipient.Resolved = True Then
Debug.Print oSafeRecipient.Name & "Resolved=True; Address=" &
oSafeRecipient.Address
End If
Please advise.
Regards,
Michael Zino