Closed nunorbatista closed 1 year ago
I could solve it by generating the request manually, like so:
$request = array(
'ItemChanges' => [
'ItemChange' => [
'itemId' => $itemId,
'Updates' => [
'SetItemField' => [
'FieldURI' => ['FieldURI' => 'item:Categories'],
'Message' => [
'Categories' => ['cat1', 'cat2']
]
]
]
]
],
'MessageDisposition' => 'SaveOnly'
);
$request = Type::buildFromArray($request);
$response = $api->getClient()->UpdateItem($request);
Hi,
I'm trying to add a category to an email and can't seem to get it to work. The other item update works such as isRead = true but not the category. Am I missing some parameter? I have no error on the response and this is what I'm trying to do:
The code above marks the email as read, but doesn't categorize it.
Thanks!