Encountered something like this working on .Net
While trying to add attachments in Microsoft Graph, using Microsoft Graph Client Library v4.3.0
Able to send mail, get mails , fetch attachments etc
The adding attachment object to a post message
In reply or send mail not working
Tried following these steps as well-
1-Creating a reply (as a draft) endpoint /createReply
3-Sending the mail
In all the above cases the attachment addition is failing with error-
Code- "RequestBodyRead", "message": "The property 'ContentBytes' doesnot exist on type 'microsoft.graph.attachment'.
And ContentBytes is the field supossed to carry the actual attachment as base64.
For attchement types i have tried using
- custom attachment object with only name and contentBytes.
Can anyone guide me regarding this issue.