class GmailApp method .getInboxThreads()

GmailApp is the Apps Script service.

.getInboxThreads() is the method name you will see after a dot in your code.

What it does

Returns email threads from the user's inbox.

Why it's used

  • Process recent inbox threads for support or lead triage.
  • Archive or label threads in bulk from a sheet-driven workflow.

Common errors

  • Forgetting parentheses on getInboxThreads. Write GmailApp.getInboxThreads(), not GmailApp.getInboxThreads or getInboxThreads by itself.
  • Skipping dots between chained calls. Each step needs a dot, like GmailApp.search('label:inbox').getInboxThreads().
  • Adding spaces where they do not belong. Write GmailApp.getInboxThreads(), not GmailApp .getInboxThreads(), GmailApp.getInboxThreads (), or GmailApp . getInboxThreads().
  • Wrong capitalization. Use GmailApp and getInboxThreads, not gmailapp or getinboxthreads.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about GmailApp.getInboxThreads().

Browse the blog