Skip to main content

Notifications

Power Pages - Power Apps Portals
Unanswered

Problem trying to upload document to SharePoint from Portal

(1) ShareShare
ReportReport
Posted on by 69

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.

  • SShah5522 Profile Picture
    SShah5522 2 on at
    Re: Problem trying to upload document to SharePoint from Portal

    Hello - I am experiencing similar issue. have we figure out the solution for the issue?

  • latsyn Profile Picture
    latsyn 3 on at
    Re: Problem trying to upload document to SharePoint from Portal

    Hi,

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

     

    Thanks

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard