How to create a nested attachments inside a top level outlook item attachment?

Mohd Ahsan 0 Reputation points
2024-07-08T18:17:04.3666667+00:00

Hi,

I am facing issues while trying to create the nested file / outlook item attachments using MS Graph API.

Example - I am trying to create a mail which has a top level mail item attachment and another mail item attachment inside the top level attachment. The nested attachment may have another file or item attachment.

It creates the mail and only top level attachment.

It does not create any nested attachment and returns 200 response.

Also, another API provided in the documentation does not work.

POST /users/{id | userPrincipalName}/mailFolders/{id}/childFolders/{id}/messages/{id}/attachments/{id}

Please let me know if there exists another way to achieve the same.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,281 questions
0 comments No comments
{count} votes

Your answer

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