none
The message exceeds the maximum supported size RRS feed

  • Question

  • I am trying to get a message from my exchange online mailbox using Outlook Office 365 Rest API and perform the following query:
    https://outlook.office365.com/api/beta/Users(userName)/Folders(folderName)/Messages(messageId)/Attachments
    or
    https://outlook.office365.com/api/v1.0/Users(userName)/Folders(folderName)/Messages(messageId)/Attachments
    or
    https://outlook.office365.com/api/beta/Users(userName)/Folders(folderName)/Messages(messageId)&$expand=Attachments
    or
    https://outlook.office365.com/api/v1.0/Users(userName)/Folders(folderName)/Messages(messageId)&$expand=Attachments
    or
    https://outlook.office365.com/api/beta/Users(userName)/Folders(folderName)/Messages(messageId)&$expand=Attachments(attachmentId)
    or
    https://outlook.office365.com/api/v1.0/Users(userName)/Folders(folderName)/Messages(messageId)&$expand=Attachments(attachmentId)

    I get the same error in all cases

    The remote server returned an error: (400) Bad Request.StatusCode:BadRequestResponse:  {    "error":      {        "code":"ErrorMessageSizeExceeded","message":"The message exceeds the maximum supported size., The message exceeds the maximum supported size."      }  }

    If I delete a query for attachments  from a message, then the message is returned. Is there a way to get attachments of the message?
    Friday, September 2, 2016 2:12 PM

All replies