Power Pages & SharePoint Integration
Power Pages & SharePoint Integration

Power Pages & SharePoint Integration

Hello Power People,

This article will help you to accomplish Power Pages & SharePoint Online Document Library Integration in a step by step process.

Overview

Quick video check it out here:

https://www.youtube.com/watch?v=-ZOZVBzbQpY

Step 1: Create a Power Pages Site.

Go to https://make.powerpages.microsoft.com and create a Power Pages Site(any existing template can be used or can be created form blank).

No alt text provided for this image
Black Hole Organisation Power Pages Site

Note 1: Microsoft does not recommend creating Power Pages Site in Organisation default environment , so create new environment with Dataverse enabled or switch to another environment(Dataverse enabled) to create Power Pages Site.

No alt text provided for this image
Create new/Select environment with Dataverse enable
No alt text provided for this image
.gif image as Power Pages Site logo

Note 2(additional info): GIF images also can be added as Logo in Power Pages Site (and SharePoint Sites as well).







Step 2: Activate SharePoint Integration for you Power Pages Site

Navigate to Power Platform Admin Center, open your environment (https://admin.powerplatform.microsoft.com/environments) and go to your newly created Power Pages (in Step 1) and request Global Admin to activate the "SharePoint Integration"

No alt text provided for this image
Activate SharePoint Integration

Step 3: Create New Dataverse table in your Power Pages Site

To create a new Dataverse Table, you would need to open your Power Pages site in edit mode.

  1. Login to Power Pages Portal ( https://make.powerpages.microsoft.com/), choose the right Environment and Click "Edit" on the Power Pages Site (created in Step 1).

No alt text provided for this image
Click "Edit" Power Pages Site

2. Click on "Data" from left hand navigation and click on "+ Table".

a. Give a table name (for eg: "Bullet Table").

b. Check the option of "Setting up SharePoint Document Management"

c. Save

No alt text provided for this image
Create Dataverse Table with SharePoint Document Management enabled



Step 4: Create a new SharePoint Online Site or get URL of a SharePoint Online Site

  1. Create a New SharePoint Online Site

Go to you SharePoint Online root site using this link https://{yourtenantname}.sharepoint.com and click on Create Site.

No alt text provided for this image



Step 5 : Enable Document Management Settings for the Dataverse table

This will create a Document Library (with the same name as you Dataverse table in the SharePoint Site)

  1. Go to Power Platform Admin Center https://admin.powerplatform.microsoft.com/environments
  2. Select the correct environment in which you've created the Power Pages site.
  3. Select "Settings" from top navigation bar.
  4. Click "Integrations"
  5. Click "Document Management Settings"

No alt text provided for this image

a. Enable Server-Based SharePoint Integration

One time activity for each environment (only 1st time)

No alt text provided for this image
Step 1,2 and 3
No alt text provided for this image
Step 4

b. Enable Document Management System

Needs to be done for the newly created Dataverse Table

No alt text provided for this image
Step 1,2 and 3


No alt text provided for this image
Step 4

Step 6: Create forms and views in Dataverse table

1.Create View

Views are the representation of a table with defined set of columns

a. Login to Power Pages Portal ( https://make.powerpages.microsoft.com/), choose the right Environment and Click "Edit" on the Power Pages Site (created in Step 1).

b. Click on "Data" from left hand navigation and open the newly created Dataverse table ("Bullet Table")

c. First we'll create a View

No alt text provided for this image
Create View
No alt text provided for this image
Add some columns and hit Publish View

d. Once done, hit "Publish View" from right top corner

No alt text provided for this image
Pulish View


2. Create Forms

Forms are created to Create records, Edit details and View details of records from the Dataverse Table

No alt text provided for this image
New Form Button click

a. Create a new "Create Records" form.

No alt text provided for this image
No alt text provided for this image

b. Once done, hit "Publish Form" from right top corner.

No alt text provided for this image

2. Similarly, create "Edit Record Details" Form and "View Record Details" Form and publish.

No alt text provided for this image

Step 7: Create Pages for "All Records", "Create Records", "Edit Record Details" and "View Record Details".

To create Pages in Power Pages Site login to Power Pages Portal ( https://make.powerpages.microsoft.com/), choose the right Environment and Click "Edit" on the Power Pages Site (created in Step 1).

1."All Records" page

On this page all records of the Dataverse "Bullet Table" will be visible to Users (Authenticated and Anonymous)

a. Create "All Records" page

No alt text provided for this image
Create All Records Page

b. Once the Page is created, Select "Lists" component

No alt text provided for this image
Select Lists Component

c. Select Setup, Action and More Options as per the screenshot.

We will come back to "Actions", once we have all other pages ready.

No alt text provided for this image
Select Setup, Action and More Options

d. Permissions setup for "Lists" component is mandatory.

No alt text provided for this image

e. New Permission addition for List Component

No alt text provided for this image

f. Sync and Preview the "All Records" Page.

No alt text provided for this image
All Records

Reference Bullet table

No alt text provided for this image
Reference Bullet table

2. "Edit Record Details" Page

On this page records will be in editable mode of the Dataverse "Bullet Table" only Authenticated users.

a. Create "Edit Record Details" page as similar a previous step.

b. Select "Form" component

No alt text provided for this image

c. Select below settings

No alt text provided for this image

d. Add permissions

d.1 Bullet Table "Edit Record Details" Permissions

No alt text provided for this image

d.2 Document Locations Table Permissions (Child Permissions)

No alt text provided for this image

and hit Save.

3. "View Record Details" Page

On this page records will be in view mode of the Dataverse "Bullet Table" to users (Authenticated and Anonymous)

Similarly as previous step create a new page "View Record Details" and add form set form properties as edit form, only "Data" property is to be set as below.

No alt text provided for this image

a. Add permissions

a.1 Bullet Table "View Record Details" Permissions

No alt text provided for this image

a.2 Document Locations Table Permissions (Child Permissions)

No alt text provided for this image

and hit Save and Sync.

Note: Sync is very important after making changes in Dataverse/site

4. "Create Records" Page

Create Records Page is still under progress (Subgrid of Document Locations is yet to be configured), I'm facing minor issue here.

Will update this part very soon.

Till then if you want to create records, go to the Dataverse table(i.e. Bullet table in my case) directly and add records from there, once record is added, that will be visible in "All Records" Page and edit record from there to upload files.


Step 8: Preview the Site and Edit/View Records

No alt text provided for this image

1. Go to "All Records" Page from Top Navigation

No alt text provided for this image

2. Click on down chevron of any record and click on "View details"

No alt text provided for this image

3. Let's see how this files is stored in back end SharePoint Document Library.

No alt text provided for this image

4. Now, let's edit a record, got to the "All Records" Page and click "Edit" of any record.

No alt text provided for this image

Choose file and click "Add File"

No alt text provided for this image








See newly uploaded file and see Delete option too.

No alt text provided for this image

Let' see how the newly uploaded file shows up in backend SharePoint Document Library

No alt text provided for this image


With above 8 steps, you learnt how to integrate Power Pages with SharePoint Sites for Document storage.

Feel free to Like , Comment , Share and Subscribe to my YouTube for more content like this, I'm open to constructive feedback, feel free to let me know.

Follow for more:

LinkedIn: https://linkedin.com/in/powertrainer

YouTube: https://youtube.com/@powertrainer

LinkTree : https://linktr.ee/powertrainersk

No alt text provided for this image

Sunil Kumar @PowerTrainer

Is it possible to use a web API to upload a file?

回复
Muhamed Smajevic

Solution Architect at PALFINGER AG

1 年

In step 8.2 is it possible to open a file in second tab instead of downloading?

回复
Chris O'Connor

Microsoft 365 - SharePoint, Teams, PowerPlatform, Azure + REACT/SPFX

1 年

Thanks - this is very detailed - but I can't get it working. I don't see the 'yellow box' - or the link for a record, to be able to upload a file. Is there an easier way to get a list of documents - for an anonymous user ??

回复
Gavin Smith

Data Analysis/PowerBI Visualist/ Project Manager/Scrum Master

1 年

Have you managed to overcome the Create issue? I have managed to get all working but cannot get a straight create (new upload) to work. I have a requirement to get new invoices to upload against a vendor and cannot achieve this.

要查看或添加评论,请登录

Sunil Kumar的更多文章

  • Licensing in Power Automate

    Licensing in Power Automate

    Hello Power People, Today's topic is Licensing in Power Automate. This needs to be mentioned again Why do we have…

    8 条评论
  • Licensing in Power Apps

    Licensing in Power Apps

    Hello Power People, Today's topic is Licensing in Power Apps. Why do we have licensing in the first place? Short answer…

    12 条评论
  • Power Platform Developer Environments

    Power Platform Developer Environments

    Hello Power People, Today's topic is Power Platform Developer Plan & Environments. What is Developer Plan? If anyone…

    2 条评论
  • AI prompts

    AI prompts

    Hello Power People, Today's topic is AI Prompts, a new feature of AI Builder, which is now generally available! A…

    4 条评论
  • Dynamic Banners in Power Apps

    Dynamic Banners in Power Apps

    Hello Power People, Today we're going to learn how to create Dynamic banners in Power Apps Canvas apps, no need to…

  • Power Apps CARDS

    Power Apps CARDS

    Hello Power People, Today we're going to learn and explore a new dimension within Power Platform which is CARDS…

    1 条评论
  • Share Power Apps with External Users

    Share Power Apps with External Users

    Hello Power People, Share Power Apps with External Users, Yes this is possible, let's see how to accomplish this in…

    15 条评论

社区洞察

其他会员也浏览了