PHPEWS 経由で Microsoft Exchange サーバーの物理アドレスを更新するコードを書くのに忙しいです。
しかし、私の人生では、物理アドレスを更新する方法がまったくわかりません。これ以外はすべて更新できます。
これが私のコードです。
// Update Physical Address.
$field = new EWSType_SetItemFieldType();
$field->IndexedFieldURI->FieldURI = 'contacts:PhysicalAddress:Street';
$field->IndexedFieldURI->FieldIndex = EWSType_PhysicalAddressKeyType::HOME;
$field->Contact = new EWSType_ContactItemType();
$field->Contact->PhysicalAddress = new EWSType_PhysicalAddressDictionaryType();
$address = new EWSType_PhysicalAddressDictionaryEntryType();
$address->Key = EWSType_PhysicalAddressKeyType::HOME;
$address->_ = $street;
$field->Contact->PhysicalAddresses->Entry = $address;
$change->Updates->SetItemField[] = $field;
次のエラーが発生し続けます
Array ( [0] => stdClass Object ( [MessageText] => An object within a change description must contain one and only one property to modify. [ResponseCode] => ErrorIncorrectUpdatePropertyCount [DescriptiveLinkKey] => 0 [ResponseClass] => Error [Items] => stdClass Object ( ) ) )
誰かが助けてくれることを願っています