Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Adding attachment to draft message - 422 Unprocessable Entity #72

@rafaltrzcinski

Description

@rafaltrzcinski

Trying to follow example of adding file attachment for created draft message. Getting the error:
422 : Unprocessable Entity

{                                                                                               
   "error": {                                                                                   
      "code": "UnprocessableType",                                                              
      "message": "Cannot process input of abstract type 'Microsoft.OutlookServices.Attachment'",
      "innerError": {                                                                           
         "request-id": "request_id_string",                                  
         "date": "date_string"                                                          
      }                                                                                         
   }                                                                                            
}

Attachment is created the same way as in code example, by FileAttachment object, all fields are filled the same way.
Is there another way to send file attachment in the same POST where draft message is created?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions