Skip to main content

Move email

Move an email to another folder (id or well-known name such as archive).

Command in the Microsoft 365 toolkit · id ooa.microsoft365/move_mail · 5 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
IDStringYesEmail id.
To folderStringYesDestination folder id, well-known name, or a path such as Inbox/Invoices/2026.
MailboxStringNomeMailbox: me, or a user's email address (needs application permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
new_idStringThe email's id in the destination folder.