Getting Issue while fetching the Outlook Mails

Hello UiPath Community,

I’m fetching the issue while getting all the Outlook mails from the Inbox in Outlook Application. I need to fetch at least 1000 mails but can’t fetch all because outlook is showing me only 88 mails in my inbox & bot is only fetching the same 88 mails which are showing but my inbox folders contains more that 1000 mails. It is not fetching other mails which is available when we click on more mails from microsoft exchange. Please help me.

Thanks

@pratik.pandya

  1. Use “Get Outlook Mail Messages” Activity: Employ this activity in UiPath to retrieve emails.
  2. Set Retrieval Parameters:
  • Specify the Outlook account and mail folder (e.g., Inbox).
  • Increase the “Top” property to a sufficient number (e.g., 1000) to retrieve all emails needed.
  1. Consider Pagination:
  • Implement pagination logic if Outlook displays emails in batches.
  • Use loops to fetch emails in manageable batches until all are collected.
  1. Verify Connection and Permissions:
  • Ensure the UiPath connection to Outlook is established.
  • Confirm the account used in UiPath has necessary permissions for email access.

@pratik.pandya,

To get all the emails from the outlook try setting up Top property to Int32.MaxValue

Thanks,
Ashok :slight_smile:

Hello,

I have added all the suggestion from you, but they are not extracting mails which is above the given option. PFA the attached picture i.e., Click here to view more on Microsoft exchange. I want to extract those mails too.