How to check file attachment status using MS Graph Api Send mail Java-SDK V5

B Jayachithra 51 Reputation points
2025-04-25T15:33:34.86+00:00

Hello Team,

We would like to check if file has been attached to mail or not using below code-MS Graph Api Java-Client credential flow.

attachmentsList1.add(fat);

AttachmentCollectionResponse attachmentCollectionResponse = new AttachmentCollectionResponse();

attachmentCollectionResponse.value = attachmentsList1;

AttachmentCollectionPage attachmentCollectionPage = new AttachmentCollectionPage(attachmentCollectionResponse, null);

message.attachments = attachmentCollectionPage;

Any other way to check file attachment status using graph api java?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    6 deleted comments

    Comments have been turned off. Learn more

Your answer

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