web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / power automate desktop...
Power Automate
Unanswered

power automate desktop - attachments.count always returns 0

(0) ShareShare
ReportReport
Posted on by

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

  • bernabasket Profile Picture
    74 on at

    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 Profile Picture
    Microsoft Employee on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard