Welcome back to Getting Started with PowerApp Portals & Dataverse. In the prior post, Part 1: Setting up the Environment and Database, we setup a new PowerApp Environment and Dataverse database and configured the database table(s), adding a Form and List to the table.
For this part we will be creating the PowerApp Portal, configuring a new Web Role, setting up Table Permissions and starting to build out our web page to host the Form and View created in Part 1.
To edit your Portal, either hover over the app and open the ellipsis menu and choose Edit. Or click the first column in front of the icon of the app you want to open, to select the row, and click “Edit” from the top menu.
How to navigate your site:
By default, my site was created with Subpage 1 and Subpage 2. I choose to repurpose Subpage 2 for my testing. You can do the same or choose to create a new page using the “+ New page” menu from the top menu.
Pages can be moved up, down or promoted from being a subpage by hovering over the page name and using the ellipsis menu.
Pages are made up of Sections, Columns and Portal Components. All can be accessed from the “+” menu on the left. You can also remove sections by selecting them on the page and using the “Delete” menu at the top of the page.
Either create a new page or open the page you want to edit.
At this point, you can give your page a name or rename the page.
Set Page Permissions so that only those in the web role have access to the page. This is all done from the Page properties on the right side of the screen. Make sure to uncheck “Page available to everyone”.
Add component to your page.
For this step we want to add both the Form and the List/View (if you haven't noticed I used the term view and list interchangeably) to the page. These could be done on separate pages, however for this example we will just add them both to the same page.
Insert Form first.
Note: If you make any changes in Dataverse, after you create your form, you may need to click the “Sync configuration” button in the upper right corner of the page to have those changes reflected on your page controls. (Note: This will come into play on Part 3 when we add the createdbycontact column and relationship or if you make changes to a List)
At this point of Part 2, you should now have a new Portal App Portal created with at least one page containing both the Form and List. You should also have a Web Role setup with permissions to access the Dataverse tables and your new page should be restricting access to that page.
You can browse your site at this point using the Browse Website button in the upper right corner of the website page as seen in the screenshot above. Because your page is restricting access to signed in users you will not see this page yet, unless you remove the page permission.
For Part 3, we will walk through registering for your Portal, where that registration gets created, adding a “Created by Contact” column to your main table along with a relationship to the Contact table, configuring the Created by Contact column to automatically populate based on the logged in contact, and assigning Contacts to the Web Role so that they can see the page.