Inventory Mail Folders and Export Messages
A 3-step recipe with Microsoft Office. We can help you get access.
Recipe · 3 steps
Inventory Mail Folders and Export Messages
with Microsoft Office
Map the mailbox folder structure, then list and read messages for export.
- Enumerate the signed-in user's mail folders to establish the mailbox layout and make folder ids available for scoping the export filter.
- List messages matching the export filter, oldest first so repeated runs page forward through the mailbox deterministically.
- Retrieve the first matched message in full so the export captures the complete record rather than the truncated preview returned by the list.
What you'll need to have ready
- messageFilter: OData $filter expression selecting messages to export, e.g. "receivedDateTime ge 2026-01-01T00:00:00Z" or a "parentFolderId eq '<id>'" expression built from the
- pageSize: Maximum number of messages to return in one page.
For your developer
Arazzo workflow microsoft-office:mail-folder-message-export, 3 operations: listMyMailFolders → listMyMessages → getMyMessage. Specs on APIs.io.