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 / Attaching a file in po...
Power Apps
Unanswered

Attaching a file in power apps not storing file to sharepoint

(0) ShareShare
ReportReport
Posted on by 240

Hi Team

 

I have this run flow, but want to use data type to handle file attachment in power app that could easily store this file in sharepoint, How can achieve such in power app?

 

gcizman2024_0-1713189819447.png

 

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

    Hi @gcizman2024 ,

     

    If you want to upload a file form canvas app to SharePoint list through power automate ,I think this thread will help you a lot:

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

    vbofengmsft_0-1713233336413.png

     

    Best Regards,

    Bof

  • gcizman2024 Profile Picture
    240 on at

    @v-bofeng-msft , the example i followed all the steps, on the flow the attachment is seem uploading fine, but on sharepoint there is no file attached, column is set to single line and have create on the flow trigger for this. I did refreshed both sharepoint datasource on power apps and flow, still its not and this my code on the button, maybe i am not using ForAll but on Advance mode set the property to Parent.DisplayMode.Edit only, but i can see MaxAttachment on my form is set 6. 

     

     

    SubmitApproval.Run(Finding_desc.Text, Text(Due_Date_Details_Calendor.SelectedDate, "yyyy-mm-dd"), 
     Root_Cause_txt.Text, Corrective_Action_txt.Text, Prevent_Action_txt.Text, 
     Status_Details_dropdown.Selected.Value, {contentBytes:First(File_Attachment.Attachments).Value,
    	name:First(File_Attachment.Attachments).Name});
    NewForm(Corrective_Action_Form);
    SubmitForm(Corrective_Action_Form);
    Notify("Corrective and Preventative submitted for Approval",NotificationType.Success);

     

    gcizman2024_0-1713251073823.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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard