© Vijai Anand Ramalingam 2018

Vijai Anand Ramalingam, Introducing Microsoft Flow, https://doi.org/10.1007/978-1-4842-3630-7_5

5. Manage Connections and Gateways

Vijai Anand Ramalingam

(1)New Jersey, USA

In this chapter, you will learn how to configure and manage connections and gateways.

Manage Connections

Connectors provide a way for users to connect to underlying services using their accounts in order to create automated workflows. Examples of popular services include SharePoint, Office 365 Outlook, OneDrive, Twitter, and more. There are more than 150 connectors. You will learn how to add and delete a connection.

Create a New Connection

Perform the following steps to create a new connection:

  1. Navigate to the Flow site at https://flow.microsoft.com .

  2. In the top navigation, click the Settings icon and then click Connections, as shown in Figure 5-1.

    A464567_1_En_5_Fig1_HTML.jpg
    Figure 5-1 Connections
  3. You’ll see a list of connections, as shown in Figure 5-2.

    A464567_1_En_5_Fig2_HTML.jpg
    Figure 5-2 List of connections
  4. Click New connection, as shown in Figure 5-3.

    A464567_1_En_5_Fig3_HTML.jpg
    Figure 5-3 New connection
  5. Enter the keyword twitter in the search text box and click Enter. Then click the + sign shown in Figure 5-4.

    A464567_1_En_5_Fig4_HTML.jpg
    Figure 5-4 Search for the twitter keyword
  6. Click Create, as shown in Figure 5-5.

    A464567_1_En_5_Fig5_HTML.jpg
    Figure 5-5 Connect to Twitter
  7. Authorize the flow to use the Twitter account, as shown in Figure 5-6.

    A464567_1_En_5_Fig6_HTML.jpg
    Figure 5-6 Authorize the app
  8. Figure 5-7 shows that the connection was added successfully.

    A464567_1_En_5_Fig7_HTML.jpg
    Figure 5-7 New connection added

Create a Connection to SharePoint’s On-Premises Data

Perform the following steps to create a connection to SharePoint’s on-premises data:

  1. Navigate to the Flow site at https://flow.microsoft.com .

  2. In the top navigation, click the Settings icon and then click Connections, as shown in Figure 5-8.

    A464567_1_En_5_Fig8_HTML.jpg
    Figure 5-8 Connections
  3. You’ll see a list of connections, as shown in Figure 5-9.

    A464567_1_En_5_Fig9_HTML.jpg
    Figure 5-9 List of connections
  4. Click New connection, as shown in Figure 5-10.

    A464567_1_En_5_Fig10_HTML.jpg
    Figure 5-10 New connection
  5. Enter the keyword SharePoint in the search text box and click Enter. Then click the + sign shown in Figure 5-11.

    A464567_1_En_5_Fig11_HTML.jpg
    Figure 5-11 Search for the SharePoint keyword
  6. Select the Connect using on-premises data gateway option and then select the Authentication Type as Windows, as shown in Figure 5-12.

    A464567_1_En_5_Fig12_HTML.jpg
    Figure 5-12 Connection options
  7. Enter the username and password, and then choose a gateway, as shown in Figure 5-13. Click Create. (Note that installing the on-premises data gateway is covered in the upcoming “Install a Gateway” section. The username and password will be the same.)

    A464567_1_En_5_Fig13_HTML.jpg
    Figure 5-13 Connect to your data
  8. You are now connected to SharePoint’s on-premises data, as shown in Figure 5-14.

    A464567_1_En_5_Fig14_HTML.jpg
    Figure 5-14 Connection added

Delete a Connection

Perform the following steps to delete a connection:

  1. Navigate to the Flow site at https://flow.microsoft.com .

  2. Click the Settings icon and then click Connections, as shown in Figure 5-15.

    A464567_1_En_5_Fig15_HTML.jpg
    Figure 5-15 Connections
  3. You’ll see a list of connections, as shown in Figure 5-16.

    A464567_1_En_5_Fig16_HTML.jpg
    Figure 5-16 List of connections
  4. Select the connection that must be deleted. Click the three dots in the upper right corner (…) and then click Delete, as shown in Figure 5-17.

    A464567_1_En_5_Fig17_HTML.jpg
    Figure 5-17 Delete a connection, part 1
  5. Click Delete to delete the connection, as shown in Figure 5-18.

    A464567_1_En_5_Fig18_HTML.jpg
    Figure 5-18 Delete a connection, part 2

Install a Gateway

An on-premises data gateway allows you to establish secure connections to integrate Microsoft Flow with on-premises data sources such as SharePoint, SQL Server, Oracle, and more. If the data gateway machine is switched off, then the flow will fail. You will learn how to install an on-premises data gateway in the SharePoint 2016 on-premises virtual machine, which allows you to connect to SharePoint 2016 on-premises data.

Perform the following steps to install an on-premises data gateway:

  1. Connect to the SharePoint 2016 on-premises virtual machine and navigate to the Flow site at https://flow.microsoft.com .

  2. In the top navigation, click the Settings icon and then click Gateways, as shown in Figure 5-19.

    A464567_1_En_5_Fig19_HTML.jpg
    Figure 5-19 Gateways
  3. You’ll see a list of gateways, as shown in Figure 5-20. Click New gateway.

    A464567_1_En_5_Fig20_HTML.jpg
    Figure 5-20 List of gateways
  4. Download the on-premises data gateway shown in Figure 5-21 and run the .exe file.

    A464567_1_En_5_Fig21_HTML.jpg
    Figure 5-21 Download and run the on-premises data gateway
  5. Read the reminders and click Next, as shown in Figure 5-22.

    A464567_1_En_5_Fig22_HTML.jpg
    Figure 5-22 Reminders
  6. Accept the terms and conditions, and then click Install, as shown in Figure 5-23.

    A464567_1_En_5_Fig23_HTML.jpg
    Figure 5-23 Install the data gateway
  7. Enter an email address to use this gateway and click Sign in, as shown in Figure 5-24.

    A464567_1_En_5_Fig24_HTML.jpg
    Figure 5-24 Sign in, part 1
  8. Enter a password and then click Sign in, as shown in Figure 5-25.

    A464567_1_En_5_Fig25_HTML.jpg
    Figure 5-25 Sign in, part 2
  9. Select Register a new gateway on this computer and click Next, as shown in Figure 5-26.

    A464567_1_En_5_Fig26_HTML.jpg
    Figure 5-26 Register a new gateway
  10. Enter the gateway name and recovery key, and then confirm the recovery key. Click Configure, as shown in Figure 5-27.

    A464567_1_En_5_Fig27_HTML.jpg
    Figure 5-27 Configure the data gateway
  11. The gateway should be online and ready to use, as shown in Figure 5-28. Click Close.

    A464567_1_En_5_Fig28_HTML.jpg
    Figure 5-28 Gateway installed
  12. The Windows service should be running, as shown in Figure 5-29.

    A464567_1_En_5_Fig29_HTML.jpg
    Figure 5-29 The Windows service
  13. The gateway was created successfully, as shown in Figure 5-30.

    A464567_1_En_5_Fig30_HTML.jpg
    Figure 5-30 Creation success

Try It Yourself

Create a new connection to connect with an on-premises SQL Server and then create a flow to update a row in SQL when an item is modified in a SharePoint list.

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

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