Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
How to send data to on-premises SQL Database using Flow, Powerapps, data gateways and connection - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2018-03-09

Recently I was looking into the On-Premises gateway for Powerapps functionality and how we can send data to on-premise sql database. Here we will see,

  • How to setup the On-Premises gateway.
  • Create a new On-Premise gateway connection.
  • Setting up a flow to send data to the On-Premises database.

How to setup the On-Premises gateway

The detailed step to setup the On-Premise gateway can be found here.  Here I am including the screenshot / steps went through to setup mine.

  1. Download the Installer from the site https://powerapps.microsoft.com/en-us/downloads/

 

 

 

 

  2. Install the On-Premises gateway

 3. Key in the Name and the Recovery key

 

 4. Complete the setup

 Check the Status of the gateway after restarting the service either using the UI or using the command “net start / stop PBIEgwService“.

Create a new On-Premises gateway connection

  1. Once the on-premises gateway is setup with the right account, go to the powerapps application and it will display the gateway created on the previous step.

   2. Create a new connection from the Connection tab

Click “New connection”

 

Select the “SQL Server” connection

Select “On-Premises data gateway” and enter the database details.

Enter the Username and Password required to connect to the database and the Gateway.

Complete the setup and the connection is displayed as below.

Setting up a flow to send data to the On-Premises database

Create a Flow on your tenant to with a trigger on Item created and action with the SQL connector.

Setup the action as to insert a new row.

Configure to store the title of the list item created and selecting the table.

Complete the Flow setup.

Right, the gateway, connection and flow setup is completed. Now let’s create a new list item on the configured list.

Create a new list item on the color calendar list.

The data is synced to the onpremises database using the above configured flow.

 

 

(Visited 1,729 times, 1 visits today)

About the author 

Balamurugan Kailasam

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.