searchDrafts finds drafts in the connected Gmail account and returns their
stable draft and message identifiers. Use the same query syntax as Gmail’s
search box.
Example
automations/find-review-drafts.automation.ts
Inputs
Every input, including
account, also accepts a compatible Signal.
Automate.ax fetches additional Gmail pages internally until it reaches limit
or Gmail has no more results.
Output
The action returns aSignal<DraftIdentifier[]>. Each item contains:
Use
draftId, not messageId, with getDraft, updateDraft, sendDraft, and
deleteDraft.