Skip to main content
outlook.moveMessage moves a message and returns its destination record.
automations/archive-outlook-message.automation.ts
Provide messageId and destinationFolder. The destination accepts an exact display path, folder ID, or well-known name. Optional second argument { account } selects the Microsoft binding. Returns the relocated OutlookMessage. Moving can change the provider message ID. Use the returned messageId for later actions rather than retaining only the source ID. Ambiguous folder names fail. A path or ID resolves the ambiguity.