capabilities.work

Reply Draft with Attachment

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

Recipe · 3 steps

Reply Draft with Attachment

Stage a reply draft, attach a file to it, then send the reply.

  1. Create a draft reply to the source message. The draft is saved in the Drafts folder and returns its own message id.
  2. Add a file attachment to the reply draft using the draft message id returned by the previous step.
  3. Send the completed reply draft. Graph returns 202 Accepted and saves the reply to Sent Items.
What you'll need to have ready
  • sourceMessageId: The id of the message being replied to.
  • comment: Optional comment text to seed the reply body.
  • attachmentName: The display name of the file attachment.
  • attachmentContentBytes: The base64-encoded content of the attachment.
  • attachmentContentType: The MIME type of the attachment.
For your developer

Arazzo workflow microsoft-outlook:reply-draft-with-attachment, 3 operations: createReplyDraft → addAttachment → sendDraftMessage. Specs on APIs.io.