{"id":20899,"date":"2019-10-25T05:47:57","date_gmt":"2019-10-25T05:47:57","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=20899"},"modified":"2020-06-01T12:50:52","modified_gmt":"2020-06-01T12:50:52","slug":"working-of-delay-until-microsoft-flow-component-with-different-dynamics-365-crm-date-behaviour","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/10\/working-of-delay-until-microsoft-flow-component-with-different-dynamics-365-crm-date-behaviour\/","title":{"rendered":"Working of \u2018Delay Until\u2019 Microsoft Flow component with different Dynamics 365 CRM Date behaviour"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>Introduction of Microsoft Flow for Dynamics 365 CRM has extended the functionality of Dynamics 365 CRM thereby allowing it an easy way to interact with other systems or include features which required much more custom development.<\/p>\n<p>It is also considered as an advanced version of Workflow where we can achieve tasks which were difficult to achieve using Workflow. In this blog, we are going to discuss one of the flow component &#8211; <strong>Delay Until<\/strong> and how it works with different behaviour of CRM data type \u2018<strong>Date and Time\u2019<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-20898\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/Delay-until.png\" alt=\"\" width=\"972\" height=\"202\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/Delay-until-300x62.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/Delay-until-660x136.png 660w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/p>\n<p>Here we are going to consider a scenario to check the working. There will be a <strong>Next Revised Date<\/strong> on Quote and we need to create task automatically that will inform the user that they need to create New Quote when <strong>Next Revised date<\/strong> is elapsed. Given below is the design of the Microsoft Flow:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-20890\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/2Delay-until.png\" alt=\"\" width=\"901\" height=\"490\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/2Delay-until.png 699w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/2Delay-until-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/2Delay-until-660x358.png 660w\" sizes=\"(max-width: 901px) 100vw, 901px\" \/><\/p>\n<p>We have created three date fields for each date behaviour and used them one by one for <strong>Delay Until<\/strong> as shown in the above screen shot to check their behaviour.<\/p>\n<ol>\n<li><strong>Next Revised Date 1:<\/strong>\u00a0With Behaviour \u201cUser Local\u201d<\/li>\n<li><strong>Next Revised Date 2:<\/strong>\u00a0With Behaviour \u201cTime-Zone Independent\u201d<\/li>\n<li><strong>Next Revised Date 3:<\/strong>\u00a0With Behaviour \u201cDate Only&#8221;<\/li>\n<\/ol>\n<p>Now let\u2019s discuss them in detail.<\/p>\n<p><strong>1. Next Revised Date 1:<\/strong>\u00a0User Local<\/p>\n<p>To check how it works we have created two users with one in IST time zone and another in EST time zone.<\/p>\n<p>To make Microsoft Flow available to another user you need to add second user as Owner of the Flow as shown below in the below screenshot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-20891\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/3Delay-until.png\" alt=\"\" width=\"850\" height=\"365\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/3Delay-until.png 776w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/3Delay-until-300x128.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/3Delay-until-768x329.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/3Delay-until-660x282.png 660w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>To navigate to this window you need to Edit Flow, then Edit Flow Connections as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-20892\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/4Delay-until.png\" alt=\"\" width=\"902\" height=\"297\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/4Delay-until.png 672w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/4Delay-until-300x98.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/4Delay-until-660x216.png 660w\" sizes=\"(max-width: 902px) 100vw, 902px\" \/><\/p>\n<p>Still you won\u2019t be able to execute Flow and you will face error for permission as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-20893\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/5Delay-until.png\" alt=\"\" width=\"1075\" height=\"660\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/5Delay-until.png 563w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/5Delay-until-300x184.png 300w\" sizes=\"(max-width: 1075px) 100vw, 1075px\" \/><\/p>\n<p>Here, you will need to add connection for Login user as shown below. Only then, you will be able to execute the Flow for second user.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-20894\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/6Delay-until.png\" alt=\"\" width=\"924\" height=\"529\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/6Delay-until.png 555w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/6Delay-until-300x171.png 300w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/p>\n<p>Here since Microsoft Flow connection is provided for each user, Next Date will be considered as per their respective Time Zone instead of the user which configured the Flow. We checked and found that the Flow were in waiting stage as per user\u2019s respective Time zone as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20895\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/7Delay-until.png\" alt=\"\" width=\"795\" height=\"179\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/7Delay-until.png 795w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/7Delay-until-300x68.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/7Delay-until-768x173.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/7Delay-until-660x149.png 660w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/p>\n<p><strong>2. Next Revised Date 2:<\/strong>\u00a0Time-Zone Independent<\/p>\n<p>As this field is to store UTC date and time, Flow as well uses UTC date to execute the task. So in this case when Flow waits for Date and time to elapse it is actually based on UTC Time Zone.<\/p>\n<p>As shown in below example, we have set local time for <strong>Next Revised Date 2.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20896\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/8Delay-until.png\" alt=\"\" width=\"942\" height=\"226\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/8Delay-until.png 942w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/8Delay-until-300x72.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/8Delay-until-768x184.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/8Delay-until-660x158.png 660w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/p>\n<p>Here, local time already elapsed on 7:15 AM but Flow is still in waiting stage since UTC time is still 3.00 AM. It completes execution at UTC 3.00 AM.<\/p>\n<p><strong>3. Next Revised Date 3:<\/strong>\u00a0Date Only<\/p>\n<p>Field with this behaviour is not available for selection as shown in below screen shot where earlier fields \u2018<strong>Next Revised Date 1<\/strong>\u2019 and \u2018<strong>Next Revised Date 2<\/strong>\u2019 are available and \u2018<strong>Next Revised Date 3<\/strong>\u2019 is not.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20897\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/9Delay-until.png\" alt=\"\" width=\"880\" height=\"454\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/9Delay-until.png 880w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/9Delay-until-300x155.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/9Delay-until-768x396.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/10\/9Delay-until-660x341.png 660w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<blockquote><p><strong>Note: <\/strong>In workflow if we are to update the field, for example, we have similar workflow which have waiting Job for date of next year and we change the record date with today\u2019s or yesterday\u2019s date then in that case all waiting jobs will be executed. But in case of Microsoft Flow, it will store the details and wait for the date to arrive next year instead of today\u2019s date.<\/p><\/blockquote>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>As illustrated above, in this way Microsoft Flow component <strong>\u2018Delay Until\u2019<\/strong> functions with different behaviour of Dynamics 365 CRM data type \u2018<strong>Date and Time\u2019<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Introduction of Microsoft Flow for Dynamics 365 CRM has extended the functionality of Dynamics 365 CRM thereby allowing it an easy way to interact with other systems or include features which required much more custom development. It is also considered as an advanced version of Workflow where we can achieve tasks which were difficult\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/10\/working-of-delay-until-microsoft-flow-component-with-different-dynamics-365-crm-date-behaviour\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":20905,"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":[18,19,36,1985],"tags":[1967,1150],"class_list":["post-20899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365-v9-2","category-dynamics-crm","category-microsoft-flow","category-power-automate","tag-dynamics-365-crm-date-behaviour","tag-microsoft-flow"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/20899","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=20899"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/20899\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/20905"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=20899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=20899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=20899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}