Skip to main content
getMessages retrieves multiple messages by their immutable Gmail message IDs. Use it when a search or another action gives you a bounded set of IDs and you need full message content. The action fetches messages concurrently and returns them in the same order as messageIds. Every attachment is returned as a File.

Example

automations/read-messages.automation.ts

Inputs

Each input can also be a compatible Signal from an earlier trigger or action. If a search can return more than 100 matches, limit or partition its identifiers before passing them here.

Output

Returns a Signal<Message[]>. Each message contains:
The action fails if Gmail cannot retrieve any requested message, so use IDs from the same connected mailbox.