web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachment control in ...
Power Apps
Unanswered

Attachment control in canvas

(0) ShareShare
ReportReport
Posted on by 84

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 

Screenshot 2023-11-27 170241.png

this is my Fx code on send button in which i am getting error "Invaild no. of arguments: recieved 1 ,expected 3"

Screenshot 2023-11-27 170807.png

here is my power automate flow 

Screenshot 2023-11-27 171621.pngScreenshot 2023-11-27 171644.png

Please help me in this 

 

Thanks for your effort

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi  @sourav456 , 

     

    I've made  a test for your reference:

    1\My flow

     vbofengmsft_0-1701134735752.png

    2\My canvas app

    vbofengmsft_1-1701134735258.png

    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:

    Solved: sending multiple files from powerapps attachmentco... - Power Platform Community (microsoft.com)

    https://www.matthewdevaney.com/power-apps-easiest-way-to-upload-files-to-a-sharepoint-document-libra...

     

     

    Best Regards,
    Bof

  • sourav456 Profile Picture
    84 on at

    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 

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

  • sourav456 Profile Picture
    84 on at

    also getting error canvas codeScreenshot 2023-11-28 153327.png

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard