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 Pages / Uploading a file to Sh...
Power Pages
Unanswered

Uploading a file to SharePoint using a Powerapps Portal Page

(0) ShareShare
ReportReport
Posted on by 179

Hi All

 

Need some help managing SharePoint documents through Powerapps Portal. We are doing a bit of R&D at the moment.

 

We have an entity which will record the uploading of files to SharePoint. I have a Dynamics CRM form which is used by a Portal page. The form contains fields which will be recorded in the entity plus a sub grid to enable the uploading of the file to our SharePoint document library. The portal page has the Table and Form layout properties set correctly

 

I have followed the steps in https://docs.microsoft.com/en-us/powerapps/maker/portals/manage-sharepoint-documents (Manage SharePoint documents). However found I needed to set the mode to Insert as Edit gave message "The requested record was not found", which sounds reasonable as we aren't processing an existing record, we are inserting a new record for a file upload. Also have set 'Enable table permissions' on portal page to off. This all worked nicely, a record was created in our entity and the document was uploaded to our SharePoint document library.

 

I then turned on table permissions on the Portal page and created a web role to use the child and parent permissions created in Step 5 of "Manage SharePoint documents" above. However I got issues with permissions for some dropdowns which we use to populate fields in our entity, so I turned off 'Enable table permissions' whilst I resolved these issues which are related to relationships.

 

What I have found is that the upload to SharePoint no longer works. The page works okay and gives the success message. The entity is populated correctly, but the document has not been uploaded to SharePoint. Also when the portal page loads we get a message at the top of the page "An unknown failure has occurred. Error ID #[some GUID], the GUID is different each time. Any ideas what may be causing the document not to upload to SharePoint?

 

Thanks in advance

Categories:
I have the same question (0)
  • srbonera Profile Picture
    13 on at

    Do you have a model driven app where you are viewing the form entity, do you see the related table named documents at all?  I have successfully configured sharepoint document integration and it does take a fair bit of config to get right 

  • paulsnolan Profile Picture
    179 on at

    Hi srbonera

     

    Thanks for the reply, I've been on holiday.

     

    We have a Dynamics 365 entity that has a form. This form is displayed using a portal web page in our PowerApps Portal. We have followed the steps as per https://docs.microsoft.com/en-us/powerapps/maker/portals/manage-sharepoint-documents

     

    We get the message at the top of the page as mentioned in my original post which would suggest an issue with our configuration for this page. We suspect our issue is permissions related

     

    Have you details of the steps you had to take for your configuration.

     

    Many thanks

  • paulsnolan Profile Picture
    179 on at

    Hi All

     

    Reviewing what we are hoping to achieve I'm wondering if we are potentially over-engineering/overcomplicating our solution. We need a page that can upload a file to a SharePoint folder (configurable by a site setting maybe) and also insert a record into an entity that will record details of the file uploaded (file name, date of upload, uploaded by, etc.). Another page will display a list populated by this entity.

     

    As mentioned in my original post we have followed this article https://docs.microsoft.com/en-us/powerapps/maker/portals/manage-sharepoint-documents but we are only concerned with uploading a file and nothing more. Any suggestions would be welcome.

  • MarieAS Profile Picture
    21 on at

    Were you able to resolve this issue? I have the same issue.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 53

#2
DP_Prabh Profile Picture

DP_Prabh 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard