{"id":29328,"date":"2021-09-13T17:51:16","date_gmt":"2021-09-13T12:21:16","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=29328"},"modified":"2021-09-14T17:54:49","modified_gmt":"2021-09-14T12:24:49","slug":"use-of-custom-api-in-power-automate-flow","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/09\/use-of-custom-api-in-power-automate-flow\/","title":{"rendered":"Use of Custom API in Power Automate Flow"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">As seen in our <a href=\"https:\/\/www.inogic.com\/blog\/2021\/08\/how-to-use-a-custom-api-as-a-step-in-dynamics-365-crm-workflows\/\" target=\"_blank\" rel=\"noopener\">previous blog<\/a>, we can create a custom API that can be triggered in Dynamics 365 CRM Workflows. But since Microsoft is moving away from Dynamics 365 CRM Workflows to Power Automate Flows, we should too. So, in this blog, we will see how to use the same Custom API in a Power Automate Flow.<\/p>\n<p style=\"text-align: justify;\">After creating a custom API, follow the steps given below:<\/p>\n<ol style=\"text-align: justify;\">\n<li>Navigate to your environment from <a href=\"http:\/\/make.powerapps.com\">make.powerapps.com<\/a> and to your solution -&gt; Click on New -&gt; Select Cloud Flow.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-1.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-29329 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-1.png\" alt=\"Custom API in Power Automate Flow\" width=\"920\" height=\"348\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-1.png 920w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-1-300x113.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-1-768x291.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-1-660x250.png 660w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/a><\/p>\n<ol style=\"text-align: justify;\" start=\"2\">\n<li>Search for \u201cwhen a row is added\u201d in the trigger and select \u201c<strong>When a row is added, modified or deleted<\/strong>\u201d trigger.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-2.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-29330 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-2.png\" alt=\"Custom API in Power Automate Flow\" width=\"634\" height=\"713\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-2.png 634w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-2-267x300.png 267w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/a><\/p>\n<ol style=\"text-align: justify;\" start=\"3\">\n<li>Rename the flow step. <em>(Note \u2013 It is recommended to uniquely name every step to prevent confusion in case the power automate flow gets a bit complex).<\/em>\n<ol>\n<li>Select \u2018Added\u2019 in change type and \u2018Accounts\u2019 in Table Name since we want this flow to run when a new account is created.<\/li>\n<li>Choose scope from Organization\/Business Unit\/Parent: Child Business Unit\/User as per your requirement.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-3.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-29331 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-3.png\" alt=\"Custom API in Power Automate Flow\" width=\"606\" height=\"223\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-3.png 606w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-3-300x110.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/a><\/p>\n<ol style=\"text-align: justify;\" start=\"4\">\n<li>Click on New Step -&gt; Search for \u201cPerform a bound action\u201d and Select \u201c<strong>Perform a bound action<\/strong>\u201d from Actions.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-4.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-29332 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-4.png\" alt=\"Custom API in Power Automate Flow\" width=\"622\" height=\"713\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-4.png 622w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-4-262x300.png 262w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/a><\/p>\n<ol style=\"text-align: justify;\" start=\"5\">\n<li>Rename this flow step.\n<ol>\n<li>Select \u2018<strong>Accounts<\/strong>\u2019 in Table name since our custom API is bound to the Accounts entity.<\/li>\n<li>Select the action by its unique name in Action Name.<\/li>\n<li>Select unique identifier of the Account (added in the previous step) in Row ID as shown below:<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"size-full wp-image-29333 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-5.png\" alt=\"Custom API in Power Automate Flow\" width=\"367\" height=\"324\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-5.png 367w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-5-300x265.png 300w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/p>\n<p style=\"text-align: justify;\">After this, the step would look like below.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-6.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-29334 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-6.png\" alt=\"Custom API in Power Automate Flow\" width=\"606\" height=\"219\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-6.png 606w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-6-300x108.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/a><\/p>\n<ol style=\"text-align: justify;\" start=\"6\">\n<li>This is pretty much it. Next, give a proper name to your flow and save it.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-29335 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7.png\" alt=\"Custom API in Power Automate Flow\" width=\"1713\" height=\"628\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7.png 1713w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7-300x110.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7-1024x375.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7-768x282.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7-1536x563.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/Custom-API-7-660x242.png 660w\" sizes=\"(max-width: 1713px) 100vw, 1713px\" \/><\/a><\/p>\n<ol style=\"text-align: justify;\" start=\"7\">\n<li>Now, whenever an account record gets created, a phone call activity associated to the account will also get created with the due date set as the next day and thus can be seen in the Timeline as well.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><strong>Conclusion<\/strong>: In this way, we can easily use the custom API in Power Automate Flow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction As seen in our previous blog, we can create a custom API that can be triggered in Dynamics 365 CRM Workflows. But since Microsoft is moving away from Dynamics 365 CRM Workflows to Power Automate Flows, we should too. So, in this blog, we will see how to use the same Custom API in\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/09\/use-of-custom-api-in-power-automate-flow\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"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":[16,19,36,38,1985,2361],"tags":[2367,1975,1989],"class_list":["post-29328","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-crm","category-microsoft-flow","category-microsoft-powerapps","category-power-automate","category-technical","tag-custom-api-dynamics-365","tag-power-automate","tag-power-automate-flows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/29328","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=29328"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/29328\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=29328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=29328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=29328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}