capabilities.work

Inspect and Remove Attachment

A 4-step recipe with Microsoft Outlook. We can help you get access.

Recipe · 4 steps

Inspect and Remove Attachment

Locate an attachment on a message, inspect it, and remove it.

  1. List messages that have attachments and capture the id of the first such message.
  2. List the attachments on the matched message and capture the id of the first attachment.
  3. Read the first attachment to inspect its name, size, and content type before deleting it.
  4. 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.