Compose, Attach, and Send
A 3-step recipe with Microsoft Outlook. We can help you get access.
Recipe · 3 steps
Compose, Attach, and Send
with Microsoft Outlook
Draft a message, attach a file, then send it in one chained flow.
- Create a draft message with the supplied subject, body, and recipient. The draft is saved in the Drafts folder and returns its message id.
- Add a file attachment to the draft message using the message id returned by the draft creation step.
- Send the completed draft. Graph returns 202 Accepted and the message is queued for delivery and saved to Sent Items.
What you'll need to have ready
- subject: The subject line of the message.
- bodyContent: The body content of the message.
- bodyContentType: The body content type, either text or html.
- toRecipientAddress: The email address of the primary recipient.
- 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:compose-attach-send, 3 operations: createDraftMessage → addAttachment → sendDraftMessage. Specs on APIs.io.