Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating contact notes #49

Closed
Daursu opened this issue Jun 22, 2016 · 2 comments
Closed

Updating contact notes #49

Daursu opened this issue Jun 22, 2016 · 2 comments

Comments

@Daursu
Copy link

Daursu commented Jun 22, 2016

I am trying to update the contact notes using the following syntax

$api->updateContactItem($contact[0]->getItemId(), [
                        'GivenName' => $customer->first_name,
                        'Notes' => $customer->notes,
                ]);

and I receive the following error:

exception 'garethp\ews\API\Exception\ExchangeException' with message 'Property is not valid for this object type.' in /var/www/vendor/garethp/php-ews/src/API/ExchangeWebServices.php:426

Without passing Notes property everything works fine. Any ideas?

Forgot to mention that I am connecting to outlook.office365.com

@Daursu
Copy link
Author

Daursu commented Jun 22, 2016

I've managed to fix it.

  1. I had to replace Notes with Body like this:
$api->updateContactItem($contact[0]->getItemId(), [
                        'GivenName' => $customer->first_name,
                        'Body' => $customer->notes,
                ]);
  1. I had to set the Exchange version to VERSION_2013_SP1. The others didn't seem to work.

@Garethp
Copy link
Owner

Garethp commented Jun 23, 2016

Yeah, notes doesn't seem updatable, which is odd, but that's an issue with Exchange as far as I can see

@Garethp Garethp closed this as completed Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants