Hi All,
I have a scenario where I need to search with attachment name and find email and move that email to another folder.
I can’t use desktop outlook application , ( UiPath’s Microsoft 365 or IMAP )Graph API and SMTP due to some client restrictions…
I am now using web mail for this which is not stable
I am able to launch my mailbox and search with attachment name without any issue ..Now I want to get the search result and move mail If search result count =1 then select that mail and move otherwise If count = 0 or more than 1 then log message and move to next step
I tried with element exists , find children , table extract to get the count and move mail but none of these are working correctly …Can someone help me in this ? some VB script will work on this ? Please suggest
@loginerror
@Nithinkrishna
Hey @Mandava_Naresh,
As per my understanding this limitation occurs because WebMail interfaces are dynamic and their elements often change, making selectors unstable for extraction or actions. It’s recommended to use the Outlook 365 or Graph API activities for a reliable and secure solution. If client restrictions prevent this, you can use a backend approach by triggering a PowerShell or VBScript that leverages Exchange Web Services (EWS) to locate and move the mail based on attachment name, and then invoke it from UiPath for better stability
Is that possible in chrome?
If yes can you please help me with the script ?
Input parameter attachmentname for search and target folder name ..
search for attachment name and to folder if search email result is 1
Output parameter is search count or something saying mail moved or not
It’s technically possible in Chrome, but not reliable or officially supported due to web mail’s dynamic structure and browser security restrictions. UiPath recommends using Microsoft Graph API, EWS, or Outlook 365 activities for stable and secure automation. These allow searching emails by attachment name and moving them programmatically. If restricted, use robust UI automation in Chrome with proper selectors and retry logic instead of scripts.
Setting an email rule is not helping. Check that feature once may be? Provided your attachment name to search is static.