{"id":24566,"date":"2020-08-31T12:49:50","date_gmt":"2020-08-31T12:49:50","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=24566"},"modified":"2020-11-18T07:55:08","modified_gmt":"2020-11-18T07:55:08","slug":"building-custom-connectors-for-power-apps-and-power-automate-flows-part-2","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/08\/building-custom-connectors-for-power-apps-and-power-automate-flows-part-2\/","title":{"rendered":"Building Custom Connectors for Power Apps and Power Automate Flows \u2013 Part 2"},"content":{"rendered":"<p>With our Azure function ready in the <a href=\"https:\/\/www.inogic.com\/blog\/2020\/08\/building-custom-connectors-for-power-apps-and-power-automate-flows-part-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">earlier post<\/a>. We now look at the steps to create a custom connector for this Azure function.<\/p>\n<p>Do remember, we have enabled AAD authentication for our Azure function.<\/p>\n<p>The APP registration provided while enabling AAD authentication was set for multi-tenant authentication.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24568 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1896\" height=\"1114\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1.png 1896w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1-300x176.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1-768x451.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1-1024x602.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-1-660x388.png 660w\" sizes=\"(max-width: 1896px) 100vw, 1896px\" \/><\/a><\/p>\n<p>While we have an easy way to create a custom connector outside the scope of a solution, since we will also cover moving custom connectors from one environment to another, we will look at the steps to create the connector from within a solution<\/p>\n<p>Navigate to <a href=\"https:\/\/make.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/make.powerapps.com<\/a> and open your solution. Next, choose New &gt; Other &gt; Custom Connector.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24569 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1662\" height=\"1948\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2.png 1662w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2-256x300.png 256w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2-768x900.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2-874x1024.png 874w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-2-660x774.png 660w\" sizes=\"(max-width: 1662px) 100vw, 1662px\" \/><\/a><\/p>\n<p>First Step provide Connector details like name, image and short description. In the host add the host name of your Azure function i.e if your azure function url was<\/p>\n<p><a href=\"https:\/\/xxx.azurewebsites.net\/api\/GetTaxRate?code=xxxx\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/xxx.azurewebsites.net\/api\/GetTaxRate?code=xxxx<\/a><\/p>\n<p>the host would be xxx.azurewebsites.net<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24570 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3.png\" alt=\"\" width=\"2164\" height=\"1572\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3.png 2164w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3-300x218.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3-768x558.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3-1024x744.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-3-660x479.png 660w\" sizes=\"(max-width: 2164px) 100vw, 2164px\" \/><\/a><\/p>\n<p>Next comes security. Since we are looking for AAD authentication, we will choose OAuth 2.0 in this step.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24571 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4.png\" alt=\"Power Apps and Power Automate Flows\" width=\"2216\" height=\"1818\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4.png 2216w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4-300x246.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4-768x630.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4-1024x840.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-4-660x541.png 660w\" sizes=\"(max-width: 2216px) 100vw, 2216px\" \/><\/a><\/p>\n<p>Client ID = APP ID of the App registration created while setting the AAD security for Azure function<\/p>\n<p>Client Secret = Secret key of the above app.<\/p>\n<p>Leave the login url and tenant id as is.<\/p>\n<p>Resource URL = Copy and paste the client id (app id of the app registration)<\/p>\n<p>Ref: Why leave common in tenant id &#8211;\u00a0 <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/howto-convert-app-to-be-multi-tenant\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/howto-convert-app-to-be-multi-tenant<\/a><\/p>\n<p>After you save the connector, the Redirect URL will be generated as shown above. Copy the redirect URL and we need to add this to our app registration (same one of which you have provided the client id here)<\/p>\n<p>Next in the Definition tab, we will provide the details of the actions that we wish to expose through our connector<\/p>\n<p>Under actions choose new action and provide the action details. The details entered here will be displayed to the user when using your connector and this action so make sure to have all the descriptive information included here.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24572 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5.png\" alt=\"Power Apps and Power Automate Flows\" width=\"2078\" height=\"838\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5.png 2078w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5-300x121.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5-768x310.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5-1024x413.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-5-660x266.png 660w\" sizes=\"(max-width: 2078px) 100vw, 2078px\" \/><\/a><\/p>\n<p>In the request section click import from sample and provide the request details. You can copy the url from Postman where we had done the test call.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-6.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24573 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-6.png\" alt=\"Power Apps and Power Automate Flows\" width=\"886\" height=\"868\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-6.png 886w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-6-300x294.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-6-768x752.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-6-660x647.png 660w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/p>\n<p>My request has 2 query parameters and in the header I need to pass the CRM connection details like URL and the Client ID, Secret for connection to the said environment.<\/p>\n<p>When you click import, you will see all the query parameters and header information has been generated for you.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24574 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1218\" height=\"1396\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7.png 1218w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7-262x300.png 262w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7-768x880.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7-893x1024.png 893w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-7-660x756.png 660w\" sizes=\"(max-width: 1218px) 100vw, 1218px\" \/><\/a><\/p>\n<p>Click Update Connector to save all changes to the connector.<\/p>\n<p>Before we test the connector we need to complete a few additional settings in Azure APP registration.<\/p>\n<h2><strong>Completing the authentication settings on Azure AD APP registration<\/strong><\/h2>\n<p>Navigate to Authentication section of the App Registration<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24575 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8.png\" alt=\"Power Apps and Power Automate Flows\" width=\"2216\" height=\"1192\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8.png 2216w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8-1024x551.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-8-660x355.png 660w\" sizes=\"(max-width: 2216px) 100vw, 2216px\" \/><\/a><\/p>\n<p>Click Add a platform<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24576 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1160\" height=\"1192\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9.png 1160w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9-292x300.png 292w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9-768x789.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9-997x1024.png 997w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-9-660x678.png 660w\" sizes=\"(max-width: 1160px) 100vw, 1160px\" \/><\/a><\/p>\n<p>Choose Web and paste the Redirect URI copied from the connector<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24577 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1160\" height=\"478\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10.png 1160w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10-300x124.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10-768x316.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10-1024x422.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-10-660x272.png 660w\" sizes=\"(max-width: 1160px) 100vw, 1160px\" \/><\/a><\/p>\n<p>Click Save to save this redirect uri.<\/p>\n<p>Next navigate to the Expose an API setting of the APP registration and click add scope<\/p>\n<p>Details provided here are displayed to the user when they are making a connection to our connector and are from another tenant. These details are used on the Consent screen<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24578 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1160\" height=\"1224\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11.png 1160w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11-284x300.png 284w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11-768x810.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11-970x1024.png 970w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-11-660x696.png 660w\" sizes=\"(max-width: 1160px) 100vw, 1160px\" \/><\/a><\/p>\n<h2><strong>Test the connection for the connector:<\/strong><\/h2>\n<p>Navigate to <a href=\"https:\/\/make.powerapps.com\">https:\/\/make.powerapps.com<\/a> &gt; Data &gt; Custom Connectors<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24579 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12.png\" alt=\"Power Apps and Power Automate Flows\" width=\"3204\" height=\"924\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12.png 3204w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12-300x87.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12-768x221.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12-1024x295.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-12-660x190.png 660w\" sizes=\"(max-width: 3204px) 100vw, 3204px\" \/><\/a><\/p>\n<p>Click the + button against the connector to build a connection to it. When you click, you should be prompted to login to Azure AD<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24580 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13.png\" alt=\"Power Apps and Power Automate Flows\" width=\"992\" height=\"1304\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13.png 992w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13-228x300.png 228w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13-768x1010.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13-779x1024.png 779w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-13-660x868.png 660w\" sizes=\"(max-width: 992px) 100vw, 992px\" \/><\/a><\/p>\n<p>Enter the credentials, if you enter the credentials of an environment other than the current environment, you would be prompted with the following screen<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24581 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14.png\" alt=\"Power Apps and Power Automate Flows\" width=\"992\" height=\"1304\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14.png 992w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14-228x300.png 228w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14-768x1010.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14-779x1024.png 779w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-14-660x868.png 660w\" sizes=\"(max-width: 992px) 100vw, 992px\" \/><\/a><\/p>\n<p>Click Accept and you should have a successful connection object created for this connector.<\/p>\n<p>Note sometimes, after this screen it may display you an error about app registration error. Try again and the next time it succeeds \ud83d\ude42<\/p>\n<p><strong>Moving this custom connector to another environment<\/strong><\/p>\n<p>Since we added this connector to a solution, simply export the solution as managed solution and import it to the other environment.<\/p>\n<p>Navigate to Custom connectors tab to find the connector listed there<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24582 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15.png\" alt=\"Power Apps and Power Automate Flows\" width=\"3442\" height=\"1154\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15.png 3442w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15-300x101.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15-768x257.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15-1024x343.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-15-660x221.png 660w\" sizes=\"(max-width: 3442px) 100vw, 3442px\" \/><\/a><\/p>\n<p>Click the + button to test connection with the connector<\/p>\n<p>If you get an error about invalid client id and secret key,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24583 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1278\" height=\"1614\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16.png 1278w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16-238x300.png 238w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16-768x970.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16-811x1024.png 811w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-16-660x834.png 660w\" sizes=\"(max-width: 1278px) 100vw, 1278px\" \/><\/a><\/p>\n<p>edit the connector and fill in the security page once again. It will be the same client id and secret key that we had added when creating this connector in the other environment.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24584 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17.png\" alt=\"Power Apps and Power Automate Flows\" width=\"3442\" height=\"1790\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17.png 3442w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17-300x156.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17-768x399.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17-1024x533.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-17-660x343.png 660w\" sizes=\"(max-width: 3442px) 100vw, 3442px\" \/><\/a><\/p>\n<h3><strong>Consuming this connector through Power Automate Flows<\/strong><\/h3>\n<p>We are now ready to create a flow and add a step for the operation in our connector.<\/p>\n<p>Choose Manual Trigger of flow<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24585 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1862\" height=\"1182\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18.png 1862w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18-300x190.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18-768x488.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18-1024x650.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-18-660x419.png 660w\" sizes=\"(max-width: 1862px) 100vw, 1862px\" \/><\/a><\/p>\n<p>In the Custom tab, you should find our connector<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24586 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1340\" height=\"772\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19.png 1340w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19-300x173.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19-768x442.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19-1024x590.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-19-660x380.png 660w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/a><\/p>\n<p>Choose our action<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24587 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1340\" height=\"772\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20.png 1340w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20-300x173.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20-768x442.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20-1024x590.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-20-660x380.png 660w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/a><\/p>\n<p>And now provide the requested details in an end user friendly UI<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24588 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1340\" height=\"1134\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21.png 1340w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21-300x254.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21-768x650.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21-1024x867.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-21-660x559.png 660w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/a><\/p>\n<p>And the result is<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24589 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22.png\" alt=\"Power Apps and Power Automate Flows\" width=\"1340\" height=\"1134\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22.png 1340w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22-300x254.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22-768x650.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22-1024x867.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Building-Custom-Connectors-for-Power-Apps-and-Power-Automate-Flows-22-660x559.png 660w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With our Azure function ready in the earlier post. We now look at the steps to create a custom connector for this Azure function. Do remember, we have enabled AAD authentication for our Azure function. The APP registration provided while enabling AAD authentication was set for multi-tenant authentication. While we have an easy way to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/08\/building-custom-connectors-for-power-apps-and-power-automate-flows-part-2\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":24601,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,2088,16,38,1985],"tags":[2089,545,1975,1882],"class_list":["post-24566","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-functions","category-custom-connector","category-dynamics-365","category-microsoft-powerapps","category-power-automate","tag-custom-connector","tag-dynamics-365-crm","tag-power-automate","tag-powerapps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=24566"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24566\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/24601"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=24566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=24566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=24566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}