You must use certain Microsoft Outlook (macOS) actions within a Loop action. Use the Microsoft Outlook (macOS) - For each mail in mail box iterator to repeat a set of actions on all the emails within the specific parameters.

Prerequisites

First, establish a connection with a Microsoft Outlook for macOS. See, Using Connect and Disconnect actions in Microsoft Outlook (macOS) package

You must use the following Microsoft Outlook (macOS) actions within a loop:

Procedure

  1. Double-click or drag the Loop action from the Loop package in the Actions palette.
  2. Select the Microsoft Outlook (macOS) - For each mail in mail box option from the Iterator list.
  3. In the Session name field, enter the session name you used to connect to the Microsoft Outlook for macOS in the Connect action.
  4. In the ALL, READ, or UNREAD options, specify the type of email to retrieve from the Microsoft Outlook for macOS.
  5. Optional: Specify the folder from which you want to retrieve the emails. For example, Inbox\folder1;Inbox\folder2.
  6. Optional: In the When subject contains field, specify a value to retrieve emails containing the value you specified in the subject.
    You can enter multiple text separated by semi-colon.
  7. Optional: In the From specific senders field, specify the email addresses to retrieve the emails.
  8. Optional: In the When received date is on or after field, specify the received date. The filter will apply to emails received on or after that date, retrieving only those emails. For example, if you enter a received date of January 15, 2025, only emails received on or after that date will be included, while emails received before that date will be excluded.
  9. Optional: In the When received date is on or before field, specify the received date. The filter will apply to emails received on or before that date, retrieving only those emails. For example, if you enter a received date of January 15, 2025, only emails received on or before that date will be included, while emails received after that date will be excluded.
  10. Select the message format to either HTML or plain text.
  11. Choose one of the following options from Use local timezone:
    • True: The email received date and time is converted in the local time zone.
    • False: The email received date and time is converted in the UTC time zone.
    • Variable: Enter a Boolean variable.
  12. Optional: In the Assign the current value to variable filed, choose either Multiple variables or Dictionary variable to save the output:
    • If using Multiple variables, perform the following steps for each variable:
      1. Click Add variable mapping.
      2. Enter the Key of the variable.
      3. Choose a variable where the data will be saved.
      4. Click Add for this data to be saved to the configured variable.
    • If using a Dictionary variable, then select the variable where outcome data can be saved.
  13. Click Save.