cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CpxDev1
New Member

power automate desktop - attachments.count always returns 0

I'm working on a Power Automate Desktop flow that checks the number of attachments in an email.  CurrentItem.Attachments.Count always returns zero even when there is an attachment.

 

Is this a bug? Has anyone run into this issue before? Is there a work-around?

 

power-automate1.pngpower-automate2.png

2 REPLIES 2
bernabasket
Resolver I
Resolver I

Hi,

 

I think it might be a bug. I've tried to use the "Save Attachments" option and it works. The downside is that the files are actually saved locally but you can do some post-actions to erase them.

 

The other problem I stepped into was: my email had 3 real attachments but PAD has detected 7 (5 of them were signature images...).

 

GetEmailAction.PNG

 

Maybe this can help you a bit, although it seems that Microsoft still needs to improve this action.

 

Cheers.

Shrav
Microsoft
Microsoft

Hi @CpxDev1 ,
You need to select the Save Attachments option for PAD to identify & download the attachments.

If it is not selected, the %CurrentItem.Attachments% would be an empty list. As a result, the %CurrentItem.Attachments.Count% would return 0.

 

Thanks,
Shrav

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,141)