Giter Site home page Giter Site logo

Attempting to add appointment attendee results in error "Cannot use personal contacts as recipients or attendees" about ews-managed-api HOT 2 OPEN

officedev avatar officedev commented on July 17, 2024
Attempting to add appointment attendee results in error "Cannot use personal contacts as recipients or attendees"

from ews-managed-api.

Comments (2)

jkaleta avatar jkaleta commented on July 17, 2024

I also encountered this problem. In my case the scenario was that I was updating an existing contact, with a modified list of attendees.
In my tests it occurred with Exchange 2010, but not with 2013 (on Office 365).

The offending attendee looked like this:

<t:SetItemField>
<t:FieldURI FieldURI="calendar:RequiredAttendees" />
<t:CalendarItem>
  <t:RequiredAttendees>
    <t:Attendee>
      <t:Mailbox>
        <t:Name>Test ([email protected])</t:Name>
        <t:EmailAddress>[email protected]</t:EmailAddress>
        <t:RoutingType>SMTP</t:RoutingType>
        <t:MailboxType>Contact</t:MailboxType>
        <t:ItemId Id="AAMkAGM2MmZiMTcy(...)AA=" ChangeKey="EQAAAA==" />
      </t:Mailbox>
    </t:Attendee>
  </t:RequiredAttendees>
</t:CalendarItem>
</t:SetItemField>

After playing with various versions of the above XML, I found out that the only combination that will pass is one without the <t:ItemId/> tag.

My solution - which may be risky - (hard to tell due to lack of documentation) - was to nullify the Id property on all attendees before updating an event in Exchange. Verified that even without the Id, Exchange properly matches the attendee to an existing contact.

Any advise would be greatly appreciated!

from ews-managed-api.

davster avatar davster commented on July 17, 2024

ItemId element is used ONLY for private DLs and contacts. It would typically be used in lieu of the other properties, not in conjunction with them. So you are correct – feel free to null out those ItemIds. We have to do matching for one-offs and directory contacts anyways since those have no ItemId equivalent.
From: Jakub Kaleta [mailto:[email protected]]
Sent: Friday, February 19, 2016 2:32 AM
To: OfficeDev/ews-managed-api [email protected]
Subject: Re: [ews-managed-api] Attempting to add appointment attendee results in error "Cannot use personal contacts as recipients or attendees" (#69)

I also encountered this problem. In my case the scenario was that I was updating an existing contact, with a modified list of attendees.
In my tests it occurred with Exchange 2010, but not with 2013 (on Office 365).

The offending attendee looked like this:

<t:SetItemField>

<t:FieldURI FieldURI="calendar:RequiredAttendees" />

<t:CalendarItem>

<t:RequiredAttendees>

<t:Attendee>

  <t:Mailbox>

    <t:Name>Test ([email protected])</t:Name<mailto:[email protected])%3c/t:Name>>

    <t:EmailAddress>[email protected]</t:EmailAddress<mailto:[email protected]%3c/t:EmailAddress>>

    <t:RoutingType>SMTP</t:RoutingType>

    <t:MailboxType>Contact</t:MailboxType>

    <t:ItemId Id="AAMkAGM2MmZiMTcy(...)AA=" ChangeKey="EQAAAA==" />

  </t:Mailbox>

</t:Attendee>

/t:RequiredAttendees

/t:CalendarItem

/t:SetItemField

After playing with various versions of the above XML, I found out that the only combination that will pass is one without the <t:ItemId/> tag.

My solution - which may be risky - (hard to tell due to lack of documentation) - was to nullify the Id property on all attendees before updating an event in Exchange. Verified that even without the Id, Exchange properly matches the attendee to an existing contact.

Any advise would be greatly appreciated!


Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-186161165.

from ews-managed-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.