EmailOutput.Count gives you number of emails you are reading while item.attachments.count will give you attachment count of that particular email @md.ahtesham.
If you have any attachments in the mail, then it will show the count. Are you sure you have attachments in the mail? Try printing the subject of the mail and check whether that subject mail has the attachment
That was strange @md.ahtesham. Can you try restarting the studio and if it doesn’t work, then tryupgrading or downgrading the mail packages of that workflow
Okay i will try that in my system, But it is very strange…
I tried same in other system which is on 2018.4.3 version and mine on 2019.7.0 and i have received same result.
Your workflow is working great. Please have a look at my result (I switched from Message Box to Write Line… to many popups ) :
I have other question. Is your outook application open when you are running the process? For Get Outlook Mail Message it needs to be opened. And it needs to be installed version of outlook, not web version.
@Pablito
It is installed and open, and i am able to get email subject but i don’t know i am not able to get the attachment count or Attachment.Any value.
It always saying No Attachment.
I suspect there is some issue with community edition.
Can you please try on community version, coz i tried same code on lots of system and fortunately all are community version and over all the system it gave me same result.
I am just curious to know why my code is not working properly in my system and it is working perfectly fine in your system…
Can you share your .xaml file so that i can run and verify…