
Announcements
We have a scenario , where we need to download attachments from 1 email at once & then we have a loop to download from 2nd email & loop goes on.
But as we have option in RETRIEVE EMAIL MESSAGES FROM OUTLOOK ACCOUNT action -> Subject contains, which gets emails with similar subjects , than exactly same or Equal subjects. Ex: 2 emails with subject Normal 1 , Normal 12. The attachments in these both emails get downloaded at once.
So kindly suggest any way to so we get attachments for 1 email at once. PFA for reference.
So, I don't know a way to make that an exact match, but you can loop through the emails after retrieving them all and PAD knows exactly where the downloaded attachment is through the %RetrievedEmail.Attachment% property.
Therefore, let's say you wanted to hit on the Exact match of "Number 1".
You could "Retrieve Emails" where subject contains "Number 1."
For Each %CurrentItem% in %RetrievedEmails%
If %CurrentItem.Subject = "Nature 1"
Save %CurrentItem.Attachment% somewhere (specific to nature 1)
End
If %CurrentItem.Subject = "Nature 12"
Save %CurrentItem.Attachment% somewhere (specific to nature 12)
End
'any other emails, it will ignore the attachment and simply leave it in the downloads folder.
Instead of multiple IFs, you could also use a Switch -> Case to define a destination folder and then move %CurrentItem.Attachment% to %DestinationFolder%
Good luck!