Actions25
Draft → Update
AI-generatedSummary
Updates an existing draft message on the specified mailbox using Microsoft Graph PATCH.
Inputs
- actionMailboxMode — Specifies which mailbox to act upon. 'Other Mailbox' requires an email address to authenticate with a shared mailbox.
- actionOtherMailboxEmail (required) — Email address of the shared mailbox to use when 'Other Mailbox' is selected for actionMailboxMode.
- draftId (required) — The unique identifier of the draft message to update.
- draftUseImmutableId — If true, the draftId input is treated as an immutable ID and the Microsoft Graph header 'IdType=ImmutableId' is added.
- draftUpdateFields — A collection of fields to update. Only fields defined here are modified on the draft.
- draftUpdateBodyType — The content type of the body field (HTML or Plain Text).
- draftIfMatchETag — An ETag (optimistic concurrency) value. The update only succeeds if the draft's ETag matches this value.
- draftUpdateAddAttachment — If true, attaches a binary file from the current workflow item to the draft after updating it.
- draftUpdateBinaryFieldName — The name of the binary property on the incoming item that holds the file to attach.
- draftUpdateAutoEmbedImageUrls — If true and the body type is HTML, fetches public image URLs in the body and converts them to inline CID attachments.
Output shape
The updated draft message object from Microsoft Graph.
Returns the full updated draft resource. The operation sends a PATCH request to the draft endpoint.
Examples
Example 1: Update the subject and body of a draft.
Set draftId to the target draft. Add 'Subject' and 'Body' fields to draftUpdateFields.
Example 2: Update a draft in a shared mailbox.
Set actionMailboxMode to 'Other Mailbox' and provide the shared mailbox email in actionOtherMailboxEmail.
Example 3: Update a draft and attach a file from the current item.
Set draftId, add 'Subject' to draftUpdateFields, and enable draftUpdateAddAttachment.