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)
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.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional