{"id":13339,"date":"2018-11-09T11:47:23","date_gmt":"2018-11-09T06:17:23","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=13339"},"modified":"2020-06-01T13:01:49","modified_gmt":"2020-06-01T13:01:49","slug":"microsoft-flow-perform-action-on-update-of-specific-field-in-dynamics-365-customer-engagement","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2018\/11\/microsoft-flow-perform-action-on-update-of-specific-field-in-dynamics-365-customer-engagement\/","title":{"rendered":"Microsoft Flow &#8211; Perform action on update of specific field in Dynamics 365 Customer Engagement"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Microsoft Flow is the best thing ever happened to citizen developers.<\/p>\n<p style=\"text-align: justify;\">The flexibility to perform some actions and the ease at which those actions can be configured is the deal breaker.<\/p>\n<p style=\"text-align: justify;\">Microsoft Flow is a sister app to Azure Logic Apps, but the fact that it is so well integrated with Dynamics 365 Customer Engagement (D365 CE), makes it the most desired platform amongst the citizen developers group.<\/p>\n<p style=\"text-align: justify;\">Now, as we all know that the Microsoft Flow offers a plethora of existing connectors to choose from. Within those existing connectors, we have a connector for D365 CE.<\/p>\n<p style=\"text-align: justify;\">For D365 CE connector, we have below triggers (at the time of writing the blog):<\/p>\n<ul style=\"text-align: justify;\">\n<li>On Demand<\/li>\n<li>On Update<\/li>\n<li>On Create<\/li>\n<li>On Delete<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Just like a workflow or a plugin that we develop, we have the flexibility to define the fields, on update of which the logic would trigger.<\/p>\n<p style=\"text-align: justify;\">For Microsoft Flow, the Flow is always triggered on an update and not on update of a specific field.<\/p>\n<p style=\"text-align: justify;\">So, the question arises, what to do if we want to trigger the Flow on update of a specific field in D365 CE?<\/p>\n<p style=\"text-align: justify;\">Well! It is not a big deal, let us lay down the simple steps that can be undertaken in order to achieve the said functionality.<\/p>\n<h2 style=\"text-align: justify;\"><strong>Scenario:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Consider a scenario where, I have a Project entity and Contact is related to that project entity in 1:N relation. Which means that 1 Project can have multiple Contacts associated to it.<\/p>\n<p style=\"text-align: justify;\">So, whenever the Status of the Project changes from New -&gt; Picked Up -&gt; Something Else, we need to update all the Contacts about the Status progress.<\/p>\n<p style=\"text-align: justify;\">So, in order to this we either have to develop a Custom Assembly and use it in the Workflow or we can develop a Plugin. This means that we need a skilled developer for this.<\/p>\n<p style=\"text-align: justify;\">Now, with the help of the Microsoft Flow, this can be achieved fairly by a citizen developer.<\/p>\n<p style=\"text-align: justify;\"><strong>Steps:<\/strong><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><strong>Step 1<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">On Update of the Status trigger an OOB Workflow (again, this is fairly simple), that\u2019d go and set the \u201cTrigger Flow?\u201d field to Yes (This custom field is the determiner for the Microsoft Flow).<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><strong>Step 2<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">Create a Flow, by choosing the \u201cD365\u201d Connector and \u201cWhen a record is updated\u201d as a Trigger point.<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><strong>Step 3<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">Next thing we need to do is check whether the \u201cTrigger Flow?\u201d field is set Yes or No.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13340\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/11\/1Microsoft-Flow-Perform-action-on-update-of-specific-field-in-Dynamics-365-Customer-Engagement.png\" alt=\"Microsoft Flow - Perform action on update of specific field in Dynamics 365 Customer Engagement\" width=\"612\" height=\"133\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Step 4<\/strong><\/span><\/p>\n<p>Perform your logic.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Step 5<\/strong><\/span><\/p>\n<p>Set the \u201cTrigger Flow?\u201d field to No.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13341\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/11\/2Microsoft-Flow-Perform-action-on-update-of-specific-field-in-Dynamics-365-Customer-Engagement.png\" alt=\"Microsoft Flow - Perform action on update of specific field in Dynamics 365 Customer Engagement\" width=\"608\" height=\"200\" \/><\/p>\n<p>So, it is this simple to design the Microsoft Flow to trigger only when the specific field is updated in D365 CE.<\/p>\n<h2><strong>Conclusion:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Following the steps above in Microsoft Flow, citizen developers could achieve something that otherwise would have required a skilled developer in the old days.<\/p>\n<blockquote>\n<p style=\"text-align: justify;\">Read our blog series on\u00a0<a href=\"https:\/\/www.inogic.com\/blog\/category\/microsoft-flow\/\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Flow in Dynamics 365<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Microsoft Flow is the best thing ever happened to citizen developers. The flexibility to perform some actions and the ease at which those actions can be configured is the deal breaker. Microsoft Flow is a sister app to Azure Logic Apps, but the fact that it is so well integrated with Dynamics 365 Customer\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2018\/11\/microsoft-flow-perform-action-on-update-of-specific-field-in-dynamics-365-customer-engagement\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":13344,"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,1985],"tags":[551,1098,1150,1155],"class_list":["post-13339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-crm","category-microsoft-flow","category-power-automate","tag-dynamics-365-customer-engagement","tag-microsoft-dynamics-365","tag-microsoft-flow","tag-microsoft-flow-dynamics-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13339","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=13339"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13339\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/13344"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=13339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=13339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=13339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}