Hii Everyone, I am trying to download attachment from outlook mail. But before that i am checking there is attachment present in the mail or not.
Problem - There is attachment present but still showing no attachment in mail.
for reference I have attached the SS of my workflow.
have a check on changing the if condition to:
CurrentMail.Attachments.Count > 0
In case of it is not working as expected analyze it like following:
set a breakpoint on the if activity
debug file and get paused
open immediate panel and type in:
in case of more attachments are found, just analyze it more in detail within the immediate panel
I have tried with this method. Can you suggest me any other solution?
please share with us what was done and what was received. Thanks
A further inspection came to following result:
Using an email with attachments:
Showing a count of 0
After saving the attachments:
We do see a count of 2 (which is correct)
We would recommend to check this also at your end. Once we can replicate it with your help then we can submit it to UiPath Development team for a next check
Hi, Yes this is correct I have tried it with my side. When I don’t use save attachment the count shows 0 but after save attachment it counts the number of attachment.
as a workaround check an alternate implementation with:
the Get Outlook Mail Message along
for each activity for looping over the emails
It seems that there is an initialization / sync issue for email AttachmentCollection when looping over the emails
Email has attachments, Emails are retrieved within the flow
Steps for replication:
Use Desktop Outlook
For each Email Acitivty
Check Attachment Count
Result is 0 / Empty Email Collection
But when Save attachments activity is used for this email, the attachments are saved
Checking the Attachments Count again after Save Attachments Activ…
Could you please try to update your Mail activity package to the latest preview version? I’ve tested the above behaviour on UiPath.Mail.Activities 1.13.1-preview and it worked as you would expect.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.