Hello,
I make use of the Microsoft Graph API to receive messages from Outlook and create a draft for reply all. The problem is that the ccRecipients in the response returns an empty array, even there are ccRecipients as shown in the message request below.
This is the request I sent:
POST https://graph.microsoft.com/v1.0/me/messages/{id}/createReplyAll
This is the response I get:
App
(
[
(
[@
[@
[
[
[
[
[
(
)
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
(
[
(
[
[
)
)
[
(
[
(
[
[
)
)
[
(
[
(
[
[
)
)
[
(
[
(
[
(
[
[
)
)
)
[
(
)
[
(
)
[
(
)
[
(
[
)
)
)
**
This is the basic message response in where it shows I should receive the ccRecipients:**
App\GraphMessage Object
(
[_propDict:protected] => Array
(
[@odata.context] => https://graph.microsoft.com/v1.0/$metadata#users('john.doe%microsoft.com')/messages/$entity
[@odata.etag] => 'HIDDEN'
[id] => 'HIDDEN'
[createdDateTime] => 2024-02-22T08:06:05Z
[lastModifiedDateTime] => 2024-02-22T08:06:06Z
[changeKey] => 'HIDDEN'
[categories] => Array
(
)
[receivedDateTime] => 2024-02-22T08:06:05Z
[sentDateTime] => 2024-02-22T08:06:04Z
[hasAttachments] =>
[internetMessageId] => 'HIDDEN'
[subject] => adsf
[bodyPreview] => adsf
[importance] => normal
[parentFolderId] => 'HIDDEN'
[conversationId] => 'HIDDEN'
[conversationIndex] => ''
[isDeliveryReceiptRequested] =>
[isReadReceiptRequested] =>
[isRead] => 1
[isDraft] =>
[webLink] => ''
[inferenceClassification] => focused
[body] => Microsoft\Graph\Model\ItemBody Object
(
[_propDict:protected] => Array
(
[contentType] => html
[content] =>
)
)
[sender] => Array
(
[emailAddress] => Array
(
[name] => John Doe (Test)
[address] => john.doe@microsoft.com
)
)
[from] => Array
(
[emailAddress] => Array
(
[name] => John Doe (Test)
[address] => john.doe@microsoft.com
)
)
[toRecipients] => Array
(
[0] => Array
(
[emailAddress] => Array
(
[name] => John Doe
[address] => john.doe@microsoft.com
)
)
)
[ccRecipients] => Array
(
[0] => Array
(
[emailAddress] => Array
(
[name] => John Doe (Test)
[address] => john.doe@microsoft.com
)
)
)
[bccRecipients] => Array
(
)
[replyTo] => Array
(
)
[flag] => Array
(
[flagStatus] => notFlagged
)
)
)