You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both FileAttachment and ItemAttachment require the @odata.type property in order to be accepted by the API when using such commands as Add Attachment. However, this isn't in the typings for either type.
A 422: Unprocessable Entity error with message Cannot process input of abstract type 'Microsoft.OutlookServices.Attachment' occurs when the attachment does not have this property.
For FileAttachment it should use: '@odata.type': '#microsoft.graph.fileAttachment'
For ItemAttachment it should use: '@odata.type': '#microsoft.graph.itemAttachment'
AB#7044
The text was updated successfully, but these errors were encountered:
Until this is address in the generator, you'll need to set this property on the FileAttachment object.
We will need to address this for all types that descend from abstract base classes. Hopefully this information is captured in ODCM model for Typescript.
Both FileAttachment and ItemAttachment require the
@odata.type
property in order to be accepted by the API when using such commands as Add Attachment. However, this isn't in the typings for either type.A
422
:Unprocessable Entity
error with messageCannot process input of abstract type 'Microsoft.OutlookServices.Attachment'
occurs when the attachment does not have this property.For FileAttachment it should use:
'@odata.type': '#microsoft.graph.fileAttachment'
For ItemAttachment it should use:
'@odata.type': '#microsoft.graph.itemAttachment'
AB#7044
The text was updated successfully, but these errors were encountered: