Hi all,
I want to built a attachment control in canvas to transfer multiple files from canvas to SharePoint using Power Automate flow.
here is my file attachment container and button
this is my Fx code on send button in which i am getting error "Invaild no. of arguments: recieved 1 ,expected 3"
here is my power automate flow
Please help me in this
Thanks for your effort
also getting error canvas code
Hi @sourav456 ,
In flow create a file section
1. file name : file.name
triggerBody()['file']['name']
2. file content:
Just select file content in dynamic content.
I think this link will help you a lot:
https://www.matthewdevaney.com/power-apps-easiest-way-to-upload-files-to-a-sharepoint-document-library/
Best Regards,
Bof
In flow create a file section
1. file name : file.name
2. file content: file
unable to get these , i am new in power apps please explain a bit
Hi @sourav456 ,
I've made a test for your reference:
1\My flow
2\My canvas app
ForAll(
AttachmentControl.Attachments As Document,
'PowerAppV2->Createfile-2'.Run( {file:{
contentBytes: Document.Value,
name: Document.Name
}})
)
I think these links will help you a lot:
Best Regards,
Bof
WarrenBelz
146,788
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional