none
Outlook 2013 drops ability to add a link to a contactitem RRS feed

  • Question

  • Hi,

    seems that MS has dropped the Links-collection of the contactitem in Outlook 2013.

    example:

    Dim oContactToLink As Outlook.ContactItemCall
    oContactToLink.Links.Add(oAnotherContactItem)

    The second line worked like a charm with Outlook 2010, but now with 2013 throws the exception "Object variable or With block variable not set".

    Are there any replacements - workarounds?

    Patrick

    Tuesday, May 6, 2014 7:03 AM

Answers

All replies

  • Hello Patrick,

    The Links property is marked as deprecated in Outlook 2013. See What's new for Outlook 2013 developers for more information. You can try to call it using the late binding technology, see Type.InvokeMember.

    Tuesday, May 6, 2014 9:42 AM
  • Thanks Eugene,

    So indeed the Links-collection has gone away. Your link lists all the affected methods and classes as deprecated.

    But what about a Workaround? I can't use InvokeMember because this "older" project is written in VB6.

    Any thoughts?

    Patrick

    Tuesday, May 6, 2014 11:26 AM
  • You can implement links in your code storing the linked contacts' IDs in user properties. Also you can try to inspect existing contact items that store links and see how they are implemented. You just need to delve into Extended Mapi level, use MFCMAPI or Outlook Spy for exploring low level properties. May be there you will find the answer or any workaround.
    Tuesday, May 6, 2014 11:40 AM
  • You can still add the data on the MAPI level either using PropertyAccessor or the RDOMail.Links collection in Redemption, but Outlook will not show it in its UI.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, May 6, 2014 5:09 PM