cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ryan_Kocher
Frequent Visitor

Upload a document to a SharePoint List in PowerApps

Hi All, I am trying to upload a document to a SharePoint List using a PowerApp. I know that the camera function works within PowerApps, but I would like to attach a screenshot, or an actual document (PDF, PNG, or Word). Users will primarily use this app in the Web view and would be uploading screenshots taken on their computers. 

 

Ideas:

  • Use the attachment control and to upload a document to a collection, then to patch that collection over to a SharePoint List.
  • Use Microsoft Flow - Upload a file to SharePoint from PowerApps
    • However, I would like to note that this flow only works with Camera Pictures.  

 

Does anyone know if there is a solution to this? 

1 ACCEPTED SOLUTION

Accepted Solutions
EnergiserFlow
Advocate I
Advocate I

Hi Ryan,

 

I encountered a similar issue with one of my apps I built for my workplace. PowerApps seems to have a few issues with patching attachments over, and using a dual set up with Flow isn't the prettiest of solutions.

 

What I did was used the Edit Form feature within PowerApps, and linked that to the relevant SharePoint list. 

For every text/number/whatever field you want populated in SharePoint, I set the default values of the form to the text input fields I already had within PowerApps, and then hid their visibility. The only field I had left visibile in the form was the attachments field - this works perfectly when submitting the form.

 

So in short - use Forms! 

View solution in original post

2 REPLIES 2
EnergiserFlow
Advocate I
Advocate I

Hi Ryan,

 

I encountered a similar issue with one of my apps I built for my workplace. PowerApps seems to have a few issues with patching attachments over, and using a dual set up with Flow isn't the prettiest of solutions.

 

What I did was used the Edit Form feature within PowerApps, and linked that to the relevant SharePoint list. 

For every text/number/whatever field you want populated in SharePoint, I set the default values of the form to the text input fields I already had within PowerApps, and then hid their visibility. The only field I had left visibile in the form was the attachments field - this works perfectly when submitting the form.

 

So in short - use Forms! 


@EnergiserFlow wrote:

Hi Ryan,

 

I encountered a similar issue with one of my apps I built for my workplace. PowerApps seems to have a few issues with patching attachments over, and using a dual set up with Flow isn't the prettiest of solutions.

 

What I did was used the Edit Form feature within PowerApps, and linked that to the relevant SharePoint list. 

For every text/number/whatever field you want populated in SharePoint, I set the default values of the form to the text input fields I already had within PowerApps, and then hid their visibility. The only field I had left visibile in the form was the attachments field - this works perfectly when submitting the form.

 

So in short - use Forms! 


Hi @EnergiserFlow 

 

can you please share and show us the formula you use and to what properties it has? 

 

please excuse for my noobility in powerapps.

 

thanks,

pytbyt

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,925)