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 Apps / Attachment Control Che...
Power Apps
Answered

Attachment Control Check Each Attachment

(0) ShareShare
ReportReport
Posted on by 125

Hi,

 

Is there a way to limit the user attaching 1 file at a time? I have a flow that will trigger if an excel file is being attached. However, if the user decided to attach multiple file at the same time. The code that have only gets the last attachment. Thus, the power automate flow failed to run.

 

e.g. the user attach:

file.pdf

file.xlsx

file.jpg

 

Since the code that I have will only check the last attachment the file that will be passed to my flow is the jpg.

 

Is there a way to create a loop to check each attachment?

Categories:
I have the same question (0)
  • philifova Profile Picture
    125 on at

    Hello Folks,

     

    I'm stuck on this. anyone have an idea?

  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @philifova ,

     

    Is this PowerApps-related? If not, I suggest asking the Power Automate community about your issue.

     

    If it is related to PowerApps, could you further describe how your users submit attachments?

  • philifova Profile Picture
    125 on at

    @WiZey 

     

    Yes, it is a PowerApps-related. I need a loop in PowerApps that will check each attachment in Attachment Control if it is an Excel File.

  • Verified answer
    WiZey Profile Picture
    3,023 Moderator on at

    All loops in PowerApps use "ForAll()".

     

    ForAll(
     DataCardValue.Attachments;
     ...
    )

     

    The above formula loops through all attachments in the datacard and do some action.

     

    Hope this was helpful to you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard