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

Notifications

Announcements

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)
  • 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.

  • 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.

  • 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

    Hello Folks,

     

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 427

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 336 Super User 2025 Season 2

Last 30 days Overall leaderboard