twins: [outlook] in a scene or --tools outlook when creating a world. Inspect its API coverage and connection code:
Connect
TypeScript
authorization header in fetchOptions. The Graph client otherwise omits it for the world’s URL. To follow an @odata.nextLink, pass the part after /v1.0 to api().
In a world with Outlook and Microsoft Word, both tools share the same Graph base URL and token.
For application authentication, exchange the client ID and secret at MICROSOFT_GRAPH_TOKEN_URL with grant_type=client_credentials and scope=https://graph.microsoft.com/.default. Use the returned token on /v1.0/users/{id or userPrincipalName}/…. Microsoft Graph requires delegated authentication for /me.
Endpoints
The mail paths below also work under/v1.0/users/{id or userPrincipalName} in place of /v1.0/me.
Message lists accept
$select, $filter, $orderby, $top, $skip, $search and $count. Add Prefer: outlook.body-content-type="text" to receive text bodies.
Starter data
Inspect the starter records and the fields you can use in a scene:ancha@acme.example), Anna Fischer and Tom Hughes. It includes the Kestrel renewal conversation, renewal-schedule.pdf, a renewal review draft and Pinecrest’s invoice approval message. Anna and Tom grant Ancha Assistant delegated access to their mailboxes.
This scene seed adds the renewal request and its PDF:
seed field.
Checks
Useoutlook.message to check a message in a mailbox and folder:
folder: sentitems to check a sent reply, or folder: drafts to check a draft. Add from, to or text_contains to match the sender, recipient or body. mailbox accepts an email address or user ID and defaults to the signed-in user. folder accepts a well-known name, seed folder ref or folder ID. Text and attachment names compare without regard to case. Set exists: false to check absence.
Behavior
- Sending delivers messages to seeded mailboxes and saves a sent copy according to
saveToSentItems. - Replies retain the conversation and reply headers. Reply-all deduplicates recipients and excludes the current mailbox.
- Moving a message changes its default ID. Deleting moves it to Deleted Items; deleting it there removes it permanently.
- Delegated access to another mailbox follows its
users[].delegatedAccessseed setting.