Inspect and Remove Attachment
A 4-step recipe with Microsoft Outlook. We can help you get access.
Recipe · 4 steps
Inspect and Remove Attachment
with Microsoft Outlook
Locate an attachment on a message, inspect it, and remove it.
- List messages that have attachments and capture the id of the first such message.
- List the attachments on the matched message and capture the id of the first attachment.
- Read the first attachment to inspect its name, size, and content type before deleting it.
- Delete the inspected attachment from the message. Graph returns 204 No Content on success.
What you'll need to have ready
- pageSize: How many candidate messages to scan.
For your developer
Arazzo workflow microsoft-outlook:inspect-and-remove-attachment, 4 operations: listMessages → listAttachments → getAttachment → deleteAttachment. Specs on APIs.io.