Unable to download Attachment

Hi All,

My BOT save attachment activity is working fine in downloading attachment from Outlook mails but I could not find the attachments in the folder provided In the save attachment path.
BOT is executing but is not downloading the attachments

there must be two chances
either there is no attachment and thus files are saved
to validate this
Before save attachment activiity use a IF condition like this
item.Attachments.Any
if true it will go to THEN part where we can use SAVE ATTACHMENT activitty to save the file
@somya177
or
the file path we refer to or mentioned is wrong

Cheers @somya177

I tried this…n its weird that attachment is there in the mail…but bot is unable to save it…

Fine
can i have a view on your sequence if possible
Cheers @somya177

Main.xaml (11.3 KB)

savedFiles is the name of folder that already exists.

we need to checkk with these stuffs
image

and
the condition used
we can mention the condition here in the FILTER property of GET OUTLOOK MAIL activity itself
like this
"[Subject] = ‘Wedding’ "
and mention the TOP property as 5
that would work
also inside the THEN part mention the message box as
item.Attachments.Any.ToString

kindly try this and let know for any queries or clarification
Cheers @somya177

I tried this…still its not downloading…on doing step into …bot comes out of foreach…and not even performs message box activityMain.xaml (12.8 KB)

does the subject contains a word like wedding in it
if so use this expression in the FILTER Property
"SQL=urn:schemas:httpmail:subject like ‘%wedding%’"

or
is wedding is the only word kept as a subject
then use this expression
"[Subject] = ‘wedding’ "

–enable onlyunread message property and set the TOP as 30…so we should have atleast one unread mail in our outlook mail box with the subject wedding
–make sure that the above mentioned is not copied and paste in the field…kindly retype the same expression because sometimes the single quotes becomes different symbol
thats why
–and also before to the for each loop use a writeline activity with this expression
mailMessage.Count.ToString to know the mail count

kindly try this and let know for any queries or clarifcation
Cheers @somya177