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 / Problem trying to uplo...
Power Pages
Unanswered

Problem trying to upload document to SharePoint from Portal

(1) ShareShare
ReportReport
Posted on by 73

Hi All

We are trying to integrate SharePoint document access into our Portal. I have followed all the steps at https://docs.microsoft.com/en-us/powerapps/maker/portals/manage-sharepoint-documents

I have built an entity list page for the entity we are using to store the SharePoint document details. For the entity list I have enabled Create and pointed it to the entity page I have created which contains the sub grid which is required for the file upload to SharePoint. Initially the entity is empty as nothing has been uploaded to SharePoint yet. I have a problem, as per Step 4 in the 'Manage SharePoint documents' I have set the form Mode to Edit, which the article says is required to allow documents to upload. However with that mode set when I access the form with the sub grid I get the message 'The record you are looking for couldn't be found. I guess this is because to edit you need a record to edit. I have tried changing the mode to Insert, which I would have thought is needed to create a new record, I get the yellow screen with the message 'TargetEntityPrimaryKeyName can not be null'. So how do we start with a new entity. What am I missing? Does the article make some assumptions as the example uses pre existing forms, we are building our pages from scratch.

Categories:
I have the same question (0)
  • latsyn Profile Picture
    3 on at

    Hi,

    did you find a solution? I have the same problem.

     

    Thanks

  • SShah5522 Profile Picture
    2 on at

    Hello - I am experiencing similar issue. have we figure out the solution for the 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 64

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard