Skip to main content

Outlook Mail:Create Draft

Controlled node

Overview​

Prepare a Outlook Mail message for review without sending it.

Create a draft in the connected Outlook Mail account for someone to review and send. Provide messageId to create a reply draft instead of a new message. This node does not send the draft.

Inputs​

InputTypeDescription
runEventTriggers this operation.
toText or arrayPrimary recipient: one email address, or an array of addresses supplied through a data connection. Optional for an unfinished draft.
ccText or arrayOptional copy recipients: one email address or an array of addresses.
bccText or arrayOptional blind-copy recipients: one email address or an array of addresses.
subjectTextDraft subject. For a reply draft, leave unset to retain the original reply subject.
messageIdTextOptional: creates a reply draft. Use the original message’s id, not threadId.
bodyTextTextPlain-text body, used when bodyHtml is not supplied.
bodyHtmlTextOptional HTML body. Takes precedence over bodyText.
attachmentsFile or arrayOptional library file object, or an array of file objects. Each file must have id and name; use actual library files or file outputs from earlier nodes.

Properties​

SettingTypeDescription
connectionsConnectionSelect an authenticated Outlook Mail connection from this project in the properties panel.

Outputs​

OutputTypeDescription
statusTextdraft created on success; otherwise an error message.
draftIdTextIdentifier of the created draft. Use only after confirming status is draft created.
doneEventFires when the node returns, including when it returns an error result. Check the data output before continuing.

Recipients and attachments​

For multiple recipients, connect an array such as ["alex@example.com", "sam@example.com"]; do not enter a comma-separated list into a single address field. Use bare email addresses, without display names. Empty text fields are treated as unset.

Attachments must reference files in this project, not external URLs or local file paths. Keep attachments small enough for the mail provider to accept.

done also fires when an error message is returned. Compare status with draft created before treating the operation as successful.

Example​

Set to to alex@example.com, subject to Draft report and bodyText to your draft content. Select the connection and trigger run from Start. On done, inspect status and draftId, then review the draft in Outlook.

For a draft reply, also supply the original message’s id as messageId.

Project connections