I am using php-ews to read mailbox items, in order to process emails as support tickets.
As some are/could be part of conversations, I want to use the UniqueBody property, to get the latest/unique part of the message.
Example request:
$request = new GetItemType();
$request->ItemShape = new ItemResponseShapeType();
$request->ItemShape->BaseShape = DefaultShapeNamesType::ALL_PROPERTIES;
$request->ItemType = new ItemType();
$request->ItemType->UniqueBody = true;
$request->ItemIds = new NonEmptyArrayOfBaseItemIdsType();
$item = new ItemIdType();
$item->Id = 'MessageId';
$request->ItemIds->ItemId[] = $item;
$response = $client->GetItem($request);
However, this results in the UniqueBody response being empty.
I have a feeling that the request value of UniqueBody is incorrect, but I cannot find any documentation, examples or other PHP solutions that help.
Has anyone know how to get this to work?
Thanks in advance,
Baz