© Nanddeep Sadanand Nachan and Smita Sadanand Nachan 2020
N. S. Nachan, S. S. NachanUnderstanding Hybrid Environments in SharePoint 2019https://doi.org/10.1007/978-1-4842-6050-0_17

17. Power Apps Integration with SharePoint Server 2019

Nanddeep Sadanand Nachan1  and Smita Sadanand Nachan1
(1)
Pune, India
 

SharePoint Server 2019 offers various new features. Power Apps integration is one of the features that bring the cloud experience on-premises. Power Apps help users design custom apps for business needs by connecting to various sources or data platforms. In this chapter, you will explore how to integrate Power Apps with SharePoint Server 2019 on-premises using a data gateway.

Power Apps Overview

Power Apps helps users build custom apps without writing any code. Power Apps have a responsive design and work well in browsers and on mobile devices. There are two types of Power Apps:
  1. 1.

    Canvas apps: They provide the flexibility to arrange the user experience and interface the way you want to configure it. You can start creating a canvas app from a blank canvas, data, sample, or common data service source.

     
  2. 2.

    Model-driven apps: They can be created from the Power Apps site. They help to rapidly develop forms, business rules, and process flows by using a common data service.

     
Note

In SharePoint Server 2019, it is possible to use Power Apps in a hybrid environment. First, you must set up a data gateway. Follow the instructions from Chapter 15 to install and configure a data gateway.

Building a Power Apps Canvas App

Follow these steps to build a Power Apps canvas app:
  1. 1.

    Sign into Power Apps (https://web.powerapps.com).

     
  2. 2.

    On the Home screen, under Start from data, click SharePoint. (Figure 17-1).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig1_HTML.jpg
Figure 17-1

Starting from SharePoint data

  1. 3.

    Under Connections , click New connection (Figure 17-2).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig2_HTML.jpg
Figure 17-2

New connection

  1. 4.

    From the available list of connections, select SharePoint.

     
  2. 5.

    Select Connect using on-premises data gateway.

     
  3. 6.

    Select the Authentication type as Windows.

     
  4. 7.

    Specify the username and password to get connected to your SharePoint Server 2019 on-premises farm.

     
  5. 8.

    Select the gateway to use from the list.

     
  6. 9.

    Click Create (Figure 17-3).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig3_HTML.jpg
Figure 17-3

Creating a new SharePoint connection

  1. 10.

    Specify the SharePoint site URL to connect to.

     
  2. 11.

    Click Go (Figure 17-4).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig4_HTML.jpg
Figure 17-4

Connecting to the SharePoint site

  1. 12.

    Select the list to connect to or enter a custom list name to create it. For this demonstration, select the preexisting Employees list.

     
  2. 13.

    Click Connect (Figure 17-5).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig5_HTML.jpg
Figure 17-5

Choosing a SharePoint list

  1. 14.

    The app is ready to configure. BrowseScreen1 will help to configure the All items view. DetailScreen1 will help to configure the View item screen. EditScreen1 will help to configure the Edit item screen (Figure 17-6).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig6_HTML.jpg
Figure 17-6

Configuring screens

  1. 15.

    Open DetailScreen1 to modify it.

     
  2. 16.

    Click InsertTextLabel (Figure 17-7).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig7_HTML.jpg
Figure 17-7

Adding controls to Power Apps

  1. 17.
    Type in the text as formula as shown below:
    Concatenate("Days since joined: ", Text(DateDiff(DateTimeValue(DataCardValue2.Text),DateTimeValue(Text(Today())),Days)))
     
DataCardValue2 represents the date of joining the field. The label should display the difference between the date of joining and today (Figure 17-8).
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig8_HTML.jpg
Figure 17-8

Configuring controls for Power Apps

Publishing the Power Apps App

Follow these steps to publish the app built with Power Apps:
  1. 1.

    Click FileSaveThe Cloud.

     
  2. 2.

    Click Save (Figure 17-9).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig9_HTML.jpg
Figure 17-9

Publishing the Power Apps app

  1. 3.

    Click Share this app (Figure 17-10).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig10_HTML.jpg
Figure 17-10

Sharing the Power Apps app

  1. 4.

    The app can be accessed from a web link URL (Figure 17-11).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig11_HTML.jpg
Figure 17-11

Generating a Power Apps app web link

Showcasing the Power Apps App in SharePoint Online

Follow these steps to display your custom business app in SharePoint Online:
  1. 1.

    Open the SharePoint Online site.

     
  2. 2.

    Edit the page and add the Microsoft Power Apps (Preview) web part under the Connectors category (Figure 17-12).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig12_HTML.jpg
Figure 17-12

Power Apps web part in SharePoint Online

  1. 3.

    Edit the web part and add an app web link or ID to the web part property (Figure 17-13).

     
../images/495752_1_En_17_Chapter/495752_1_En_17_Fig13_HTML.jpg
Figure 17-13

Specifying an app web link or ID to the web part property

Conclusion

The Power Apps feature brings the cloud experience to SharePoint Server 2019 on-premises. You can set up a data gateway for creating canvas apps. Power Apps offer a responsive design and work well in browsers and on mobile devices. SharePoint Online provides the Microsoft Power Apps (Preview) web part to render the Power Apps apps in a browser.

In the next chapter, you will explore how to integrate Power Automate with SharePoint Server 2019 on-premises using a gateway.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.56.45