{"id":3349,"date":"2018-09-28T07:01:31","date_gmt":"2018-09-28T07:01:31","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=3349"},"modified":"2018-09-28T07:09:14","modified_gmt":"2018-09-28T07:09:14","slug":"fixing-dynamics-365-portals-page-template-issue","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=3349","title":{"rendered":"Fixing Dynamics 365 Portals Page Template Issue"},"content":{"rendered":"<p>While creating Page Template (If you are new to Dynamics 365 portal, you can check about Page Template\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/portals\/page-templates\">here<\/a>) in Dynamics 365 portal, I noticed the type validation was not working (<em>It should hide Rewrite Url field when Web Template is selected under Type field<\/em>).<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/?p=2503\">Please refer our earlier article for setting up Dynamics 365 trial\u00a0<\/a>if you want to set up a Dynamics 365 trial and you can refer\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/portals\/provision-portal\">this\u00a0<\/a>KB to provision portal in your trial.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3350 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue1-300x113.png\" alt=\"Pagetemplateissue1\" width=\"300\" height=\"113\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue1-300x113.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue1-624x234.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue1.png 661w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>First thing I checked if there is any javascript function available under event for Type field but did not find any event associated and then I checked if there is any business rule attached to this field and found following three business rule in the deactivated state.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3351 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue2-300x131.png\" alt=\"Pagetemplateissue2\" width=\"300\" height=\"131\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue2-300x131.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue2-624x272.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue2.png 790w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After activating above business rule Type validation started working fine.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-3352 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue3-300x62.png\" alt=\"Pagetemplateissue3\" width=\"300\" height=\"62\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue3-300x62.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2018\/09\/Pagetemplateissue3.png 413w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Hope it will help someone !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While creating Page Template (If you are new to Dynamics 365 portal, you can check about Page Template\u00a0here) in Dynamics 365 portal, I noticed the type validation was not working (It should hide Rewrite Url field when Web Template is selected under Type field). Please refer our earlier article for setting up Dynamics 365 trial\u00a0if you want to set up&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=3349\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3206,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402,508],"tags":[635,503,636],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3349"}],"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=3349"}],"version-history":[{"count":6,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3349\/revisions"}],"predecessor-version":[{"id":3358,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3349\/revisions\/3358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3206"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}