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

Notifications

Announcements

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard