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 aSignal<Message[]>. Each message contains: