I want to read all the Mail's without mention the index Number like -(0)

in the Mail = Gmail.folder(“Inbox”)(0)

I want to read all the Mail’s without mention the index Number like -(0)

@krishna_priya

Please use for each email activity and give the folder from
Which you wnat to read

Cheers

@krishna_priya
o read all emails without specifying the index number in UiPath, you can use a loop to iterate through each email in the mailbox. Here’s an example of how you can achieve this:

  1. Use the “Get Outlook Mail Messages” activity to retrieve all emails from the mailbox.
  2. Place the activity inside a “For Each” loop.
  3. Set the type argument of the loop to “System.Net.Mail.MailMessage” or “UiPath.Mail.Outlook.OutlookMailMessage” depending on the version of UiPath you are using.
  4. In the loop body, you can access the properties of each email using the loop variable.
  5. Perform the desired actions or extract information from each email within the loop.