Unitalk Microsoft Outlook icon

Unitalk Microsoft Outlook

Consume Microsoft Outlook API

Actions37

Draft → Create

AI-generated

Summary

Create a new email draft in the specified Microsoft Outlook mailbox with customizable details such as subject, body content, recipients, attachments, and headers.

Inputs

  • subject — The subject line of the draft email.
  • bodyContent — The content of the draft email body, which can be HTML or plain text.
  • additionalFields — Optional fields including recipients (To, CC, BCC), categories, importance, read receipt request, from address, reply-to address, attachments (binary input fields), and any custom internet message headers.

Output shape

a single record containing the created draft message's details as returned from Microsoft Outlook API

The output includes the draft ID and metadata; errors are surfaced if creation fails.

Examples

Example 1: Create a draft email with subject, HTML body, To recipients, and an attachment from input binary data.

Set Subject to 'Meeting Agenda', BodyContentType to 'html', enter HTML message as bodyContent, set toRecipients with comma-separated emails, and specify the input binary property name in attachments.

Links

Discussion