Comments (2)
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.
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)
- all awaitable Task methods should offer a cancellationToken overload HOT 1
- EWS Managed API code execution freezes on syncFolderItems
- Autodiscover Service couldn't be located with Modern Username and Password.
- Time Zone is in UTC on Replies
- ErrorConnectionFailedTransientError is added but this library is not updated
- ExchangeService.GetRoomLists(): "Mailbox '<guid>' doesn't have a valid license."
- EWS managed API: intermittently returns no response
- Package 'Microsoft.Exchange.WebServices 2.2.0' was restored error
- How can I send S/MIME emails?
- EWS Search Query only returns 250 items from Archive Mailbox HOT 5
- office 365 pullsubscription publicfolder after oauth authentication does not work
- This repo is missing important files
- EWS RecipientCache and Suggested Contacts fail itemShape is nul HOT 2
- Transport headers are sometimes returned with missing whitespace character(s)
- EWS Throttling issues being rolled out worldwide on 365 HOT 25
- ExchangeService.FindFolders with WellKnownFolderName.PublicFoldersRoot fails HOT 19
- Entries from Microsoft Bookings appear in EWS response and lead to NullReferenceException (using Exchange Online) HOT 2
- How can I set an MPIP sensitivity label on an outgoing email using EWS?
- 401 unauthorized exception because of special char in password?
- Unexpected response after creating a new Auth token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ews-managed-api.