AWS WorkMail (EWS) icon

AWS WorkMail (EWS)

Interact with AWS WorkMail using Exchange Web Services (EWS)

Message → Get Many

AI-generated

Summary

Retrieve multiple email messages from a specified folder in AWS WorkMail using Exchange Web Services (EWS).

Inputs

  • Folder — Folder ID or distinguished folder name to retrieve messages from, e.g., inbox, sentitems, deleteditems, drafts. Defaults to 'inbox' if not specified.
  • Return All — Boolean flag indicating whether to return all messages from the folder or limit the number of messages returned. Defaults to false.
  • Limit — Maximum number of messages to return if 'Return All' is false. Accepts values between 1 and 500. Defaults to 50.
  • Additional Fields: Sort — Sort order for returned messages; can be 'Newest First' (desc) or 'Oldest First' (asc). Defaults to 'Newest First'.

Output shape

a list of messages

Returns a JSON array where each item represents a full email message retrieved from the specified folder. By default, returns up to the specified limit or up to 500 if 'Return All' is true. Sort order applies to the list of messages.

Examples

Example 1: Retrieve up to 100 newest messages from the inbox folder

Set 'Folder' to 'inbox', 'Return All' to false, and 'Limit' to 100. Leave 'Sort' at default 'desc'. The node returns an array of up to 100 messages sorted newest first.

Example 2: Retrieve all messages from the drafts folder sorted oldest first

Set 'Folder' to 'drafts', 'Return All' to true, and 'Sort' to 'asc'. The node returns all messages in the drafts folder sorted from oldest to newest.

Links

Discussion