{"id":12728,"date":"2018-08-24T10:44:23","date_gmt":"2018-08-24T05:14:23","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=12728"},"modified":"2022-09-02T16:22:46","modified_gmt":"2022-09-02T10:52:46","slug":"validating-bpf-fields-to-restrict-stages-through-oob-workflow-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2018\/08\/validating-bpf-fields-to-restrict-stages-through-oob-workflow-in-dynamics-365\/","title":{"rendered":"Validating BPF Fields to Restrict Stages through OOB Workflow in Dynamics 365"},"content":{"rendered":"<h2><strong>Introduction: <\/strong><\/h2>\n<p>Recently we had business requirement where user should be restricted in moving to the next stage in Business Process Flow if custom field contains value less the 4. We achieved this using OOB workflow by following simple steps instead of writing custom code in JavaScript.<\/p>\n<h2><strong>Following are the steps to achieve this functionality through OOB workflow:<\/strong><\/h2>\n<p><strong>1<\/strong>. Firstly we created a new option set field named as <strong>Grade <\/strong>with option from 1 to 8. We added this field in <strong>Lead to Opportunity Sales Process<\/strong> on <strong>Qualify<\/strong> Stage as shown in below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-12729\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/1Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365.png\" alt=\"Validating BPF Fields to Restrict Stages through OOB Workflow in Dynamics 365\" width=\"967\" height=\"516\" \/><\/p>\n<p><strong>2<\/strong>. Now we developed an OOB workflow on <strong>Lead <\/strong>entity as shown in below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-12730\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/2Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365.png\" alt=\"Validating BPF Fields to Restrict Stages through OOB Workflow in Dynamics 365\" width=\"966\" height=\"559\" \/><\/p>\n<p><strong>3<\/strong>. In the above OOB workflow, we have checked the grade value not is greater than 4, then we have stopped the workflow with status reason as <strong>Cancelled<\/strong>.<\/p>\n<p><strong>4<\/strong>. We can configure message by clicking on set properties as shown in below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-12731\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/3Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365.png\" alt=\"Validating BPF Fields to Restrict Stages through OOB Workflow in Dynamics 365\" width=\"971\" height=\"391\" \/><\/p>\n<p><strong>5<\/strong>. Now set the input parameter <strong>Status Message<\/strong> as shown in below screenshot.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-28138\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365-2.png\" alt=\"\" width=\"642\" height=\"293\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365-2.png 642w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365-2-300x137.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>6<\/strong>. Now back to the <strong>Lead to Opportunity Sales Process, <\/strong>add the above developed OOB workflow on <strong>Qualify<\/strong> stage and update the process.<\/p>\n<p>Please find the screenshot below.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-12735\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/5Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365.png\" alt=\"Validating BPF Fields to Restrict Stages through OOB Workflow in Dynamics 365\" width=\"974\" height=\"499\" \/><\/p>\n<p><strong>7<\/strong>. Now you can see the below business process error while moving to next stage i.e. from Qualify to QA if the grade is not greater than 4.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-12737\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/08\/6Validating-BPF-Fields-to-Restrict-Stages-through-OOB-Workflow-in-Dynamics-365.png\" alt=\"Validating BPF Fields to Restrict Stages through OOB Workflow in Dynamics 365\" width=\"973\" height=\"393\" \/><\/p>\n<h2><strong>Conclusion:<\/strong><\/h2>\n<p>Instead of developing custom JavaScript code to achieve this functionality we can achieve this functionality by developing simple out of the box workflow in Dynamics 365.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Generate Your Own New Leads Within Microsoft Dynamics 365 CRM<\/div><\/div><\/h2>\n<p><em>Contact us for a <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">demo<\/a> to know more about how <a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> can help you to generate new leads from within Microsoft Dynamics 365 CRM.<\/em><\/p>\n<p><em><a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> is a 5-star rated, preferred business app on the <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a> that is Certified for Microsoft Dynamics 365 (CfMD) and comes with powerful features like Appointment Planning, Sales Routing, Territory Management, Heat Maps, Geo-analytical Dashboards and more that empower organizations to add more value to their CRM data, improve sales &amp; service processes, and achieve high ROI.<\/em><\/p>\n<p><em>Get your <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">free trial<\/a> from our Website or <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a>!<\/em><\/p>\n<p><em>&#8216;If data is the new oil, location intelligence is ??\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Recently we had business requirement where user should be restricted in moving to the next stage in Business Process Flow if custom field contains value less the 4. We achieved this using OOB workflow by following simple steps instead of writing custom code in JavaScript. Following are the steps to achieve this functionality through\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2018\/08\/validating-bpf-fields-to-restrict-stages-through-oob-workflow-in-dynamics-365\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":12733,"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,18,19,67],"tags":[1276,1277],"class_list":["post-12728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","category-workflows","tag-oob-workflow-in-dynamics-365","tag-oob-workflow-in-dynamics-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/12728","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=12728"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/12728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/12733"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=12728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=12728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=12728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}