Share via

Microsoft Graph API createReplyAll route returns empty ccRecipients

Pieter Uitenbroek 0 Reputation points
2024-02-22T10:02:23.4433333+00:00

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
                )
        )
)

Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Sourabh Gupta 805 Reputation points Microsoft External Staff
    2024-02-25T12:19:53.9666667+00:00

    Hi Pieter Uitenbroek,

    Thanks for reaching out.

    There seems to be an issue with this endpoint. As a work around can you just send a PATCH request to the newly created reply to update the recipients in To and CC fields

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.