Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Attachment control to be a requirement on powerapps screen

(0) ShareShare
ReportReport
Posted on by 212

I have an attachment control in Powerapps. The way I got the attachment control onto the screen is by adding a form temporarily and and copying the attachment control. Once Pasted to the screen, I removed the Form.

 

Currently, on submit (onselect property) I am able to update a sharepoint list using the patch function and powerautomate to save the attachments to a library.

 

I want enforce a check to make a attachment required on submit. Any suggestions?

 

Here is my current code on the submit button : 

 

 

Set(
recID,
Patch(AccessPersonslist, Defaults(AccessPersonslist),
{
Title:User().FullName,
Q1:Radio1.Selected.Value,
Q2:Radio2.Selected.Value,
Q3:Radio3.Selected.Value,
Q4:Radio4.Selected.Value,
Q5:Radio5.Selected.Value
}
).ID
);

ForAll(Attach.Attachments, PowerappsUploadStatementstoLib.Run(recID,
{
file: {
contentBytes: Value,
name: Name
}
}
)
); Navigate(Finish_screen,ScreenTransition.Fade)

  • BCBuizer Profile Picture
    21,991 Super User 2025 Season 1 on at
    Re: Attachment control to be a requirement on powerapps screen

    Hi @mthiru_0023 ,

     

    Not sure what you want to do with this check, but you can use the below condition to trigger it:

     

    IsEmpty(Attach.Attachments)

    This will return true if there are no attachments.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard