> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Copy message

> Copy an Outlook message to another mail folder.

`copyMessage` leaves the source in place and creates a copy in another folder.

```ts automations/copy-outlook-message.automation.ts theme={null}
import { automation } from "automate.ax"
import { copyMessage } from "automate.ax/outlook"

export default automation("Copy Outlook message", () => {
  copyMessage({ messageId: "AAMkAGI2...", destinationFolder: "Cases/Launch" })
})
```

Required `messageId` identifies the source. `destinationFolder` accepts an exact
display path, ID, or well-known name. Optional `account` selects the binding.
Returns the newly copied `OutlookMessage`, whose `messageId` differs from the
source. Use a folder path or ID when display names repeat.
