Hi Team
I have a PowerApp made which collects data through forms. I want the users to be able to upload documents to Sharepoint when completing this form.
I have the upload section working via a button inside the Attachment DataCard, and a PowerAutomate flow.
OnSelect for Upload Button:
ForAll(
attach.Attachments,
Uploadfiletosharepoint.Run(
{
file: {
name: ThisRecord.Name,
contentBytes: ThisRecord.Value
}
}
)
)
I have also made a flow in PowerApps for the deleting of the sharepoint file, inside a Gallery, inside the Attachment DataCard. However, i am having trouple with getting the OnSelect for Delete Button, working correctly.
This is the Delete Attachment PowerAutomate within PowerApps:
Not sure if i'm missing anything here.