{"id":3503,"date":"2018-11-30T08:54:30","date_gmt":"2018-11-30T08:54:30","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=3503"},"modified":"2018-11-30T08:54:30","modified_gmt":"2018-11-30T08:54:30","slug":"dynamics-365-ce-and-azure-function-part-5","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=3503","title":{"rendered":"Dynamics 365 CE and Azure Function Part 5"},"content":{"rendered":"<p><strong>Introduction<\/strong><br \/>\nThis is our last article in the series of Dynamics 365 and Azure function integration. In earlier articles, we discuss how we can delete blob storage after our azure function trigger executed. Now we are going to discuss how can we trigger azure function from Microsoft Flow. You can refer our earlier articles from following links<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/?p=3371\">Dynamics 365 CE and Azure Function Part 1<\/a><br \/>\n<a href=\"https:\/\/himbap.com\/blog\/?p=3425\">Dynamics 365 CE and Azure Function Part 2<\/a><br \/>\n<a href=\"https:\/\/himbap.com\/blog\/?p=3448\">Dynamics 365 CE and Azure Function Part 3<\/a><br \/>\n<a href=\"https:\/\/himbap.com\/blog\/?p=3473\">Dynamics 365 CE and Azure Function Part 4<\/a><\/p>\n<p><strong>Details<\/strong><br \/>\nOur CSV file will be uploaded to SharePoint so we are going to use Microsoft Flow to start as soon as file is uploaded to SharePoint document library. Further it can copy file from SharePoint to Azure blob storage which will trigger our azure function and will import file to Dynamics 365. We are going to use following flow template, you can search it under Flow templates.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3504 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow1-300x237.png\" alt=\"Aflow1\" width=\"300\" height=\"237\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow1-300x237.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow1-624x493.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow1.png 724w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click on Create button and setup Azure blob storage connection by filling following details<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3505 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow2-300x151.png\" alt=\"Aflow2\" width=\"300\" height=\"151\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow2-300x151.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow2.png 528w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nWhen Connection is created, click on Continue button and select your SharePoint instance and SharePoint folder<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3506 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow3-300x80.png\" alt=\"Aflow3\" width=\"300\" height=\"80\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow3-300x80.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow3.png 617w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nAfter that select Azure blob storage name<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3507 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow4-300x83.png\" alt=\"Aflow4\" width=\"300\" height=\"83\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow4-300x83.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/11\/Aflow4.png 620w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Save your changes, now we can test our flow by uploading CSV file to SharePoint folder and it should copy the file to Azure blob storage and further it will initiate Azure function trigger.<\/p>\n<p>Stay tuned for more Dynamics 365 contents !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This is our last article in the series of Dynamics 365 and Azure function integration. In earlier articles, we discuss how we can delete blob storage after our azure function trigger executed. Now we are going to discuss how can we trigger azure function from Microsoft Flow. You can refer our earlier articles from following links Dynamics 365 CE&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=3503\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3407,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[491,522,593],"tags":[654,682,681,683],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3503"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3503"}],"version-history":[{"count":3,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3503\/revisions"}],"predecessor-version":[{"id":3510,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3503\/revisions\/3510"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3407"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}