Skip to main content

Search email in Gmail

Written by Wrk Product
Updated over 10 months ago

Search your email in Gmail.
Query documentation: https://support.google.com/mail/answer/7190

Application

  • Google Gmail

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Gmail credentials

The connected account to use for the request

Connected Account

Yes

Query

Only return messages matching the specified query. Supports the same query format as the Gmail search box. Example: from:someuser@example.com rfc822msgid:

is:unread

Text (Long)

Yes

from:someuser@example.com rfc822msgid:

is:unread

Email address

The Email address you would like to search in. Defaults to β€˜me’. Example: support@wrk.com

Email

No

Maximum number of results

Default: 100

Number

No

10

Label IDs

List of IDs of labels to search by. Example: sent, important

Text (Long)

No

sent, important

Include spam and trash?

Indicates if the spam and trash folders should be included in the search

True/False

No

List of the correct query documentation: https://support.google.com/mail/answer/7190
​

Search and filter differences: Gmail UI versus Gmail API

Outputs (what you get)

Name

Description

Data Type

Required?

Example

Number of emails returned

Number

No

gmailSearchEmailMessageResults

List of undefined

No

Outcomes

Name

Description

Success

This status is selected if the job has successfully completed.

No result

This status is selected if the job has successfully completed but no result was produced.

Requirements

  • N/A

Did this answer your question?