Skip to main content

Notifications

Power Apps - Building 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?

  • Verified answer
    WiZey Profile Picture
    WiZey 3,023 on at
    Re: Attachment Control Check Each Attachment

    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
    philifova 125 on at
    Re: Attachment Control Check Each Attachment

    @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
    WiZey 3,023 on at
    Re: Attachment Control Check Each Attachment

    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
    philifova 125 on at
    Re: Attachment Control Check Each Attachment

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard