SharePoint integration in PowerApps Portal

Introduction: In this blog, we will understand how to enable SharePoint integration in PowerApps Portal.

This blog also explains how we can create folders and add files from PowerApps Portal to SharePoint.

STEP 1: Enable SharePoint integration:

  1. Go to Apps.
  2. Select your portal –> Click on more commands(…) –> Click on Settings
  1. Click on “Administration
  1. Go to Setup SharePoint Integration and click on “Enable SharePoint Integration
  1. Click on Enable button it will then ask you to sign in again.
  1. Click on Accept to grant the required permissions.
  1.  You will get the below message.

STEP 2: Enable document management for table(entity)

NOTE: If document management is not enabled already then follow below steps.

  1. Go to Settings –> Document Management –> Document Management Settings
  1. Select table
  1. Click on Next
  2. Click on OK
  1. Click on Finish.

STEP 3: Customizing Form

  1. Add Document Location subgrid in the form .(The form which you are using in the PowerApps portal)
  1. Save and Publish your customization.

NOTE:  

  • Create & use the different Basic(entity) forms to create and edit the record in PowerApps Portal.
  • Add subgrid on forms that you are going to use to edit or view the record in PowerApps Portal.
  • Don’t add a subgrid on the form which you are using to create a record in PowerApps Portal

STEP 4: Creating and Assigning Table(Entity) Permissions.

  1. I am enabling SharePoint Documents for the “Project” table so I have to create two table(entity) permission records one for Project and one for Document Location.

a. Table permission for the Project table. (Don’t forget to add web roles to the table permission)

b. Table permission for Document Location.

Table Name: Document Location

Scope: Parent (This will make sure the user can only see documents that are related to the record)

Parent Table Permission: Select table permission of project from lookup.

Privileges: Read,Create,Write,Append,Append To

Go to Portal, You should able to upload files now.

  1. Open any Project record in Portal.
  2. You should see the Document Section below from where you can “Add files” or Create “New folder” in SharePoint.
  1. Click on the “Add files” button you are shown a pop-up window from where you can choose the files to upload.
  1. You can see the New Folder is created in SharePoint for that Particular Project and file is also uploaded inside the respective folder.
  1. Click on “New Folder” to create new folder this will get created inside the parent folder in SharePoint.
  1. From the portal, you can go inside the folder and then upload files that get uploaded inside the respective folder in SharePoint.
  • Add Files” in newly created folder.
  • New Folder and Files in SharePoint.

Leave a Reply

Your email address will not be published. Required fields are marked *