{"id":23478,"date":"2020-05-05T13:09:44","date_gmt":"2020-05-05T13:09:44","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=23478"},"modified":"2021-12-06T15:05:32","modified_gmt":"2021-12-06T09:35:32","slug":"now-open-crm-record-in-dialog-using-navigateto-client-api","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/05\/now-open-crm-record-in-dialog-using-navigateto-client-api\/","title":{"rendered":"Now Open CRM record in dialog using navigateTo Client API"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>With 2020 Release Wave 1 Update for Dynamics 365, we can open main form of CRM record in dialog using <strong>navigateTo Client API<\/strong>. Earlier, we used <a href=\"https:\/\/docs.microsoft.com\/powerapps\/developer\/model-driven-apps\/clientapi\/reference\/xrm-navigation\/openform\"><strong>Xrm.Navigation.openForm<\/strong><\/a>\u00a0method to open CRM record and this method opened the CRM record in new window or same window of browser.<\/p>\n<p>Using navigateTo Client API, we can open the CRM record in dialog from our custom web resource or any CRM form, without leaving our current form or web resource.<\/p>\n<p>Below, we have provided information about how to open the CRM record in dialog.<\/p>\n<p><strong>Open new CRM record<\/strong><\/p>\n<p>Here we have opened new CRM record of contact entity.<\/p>\n<p>var pageProperty = {<\/p>\n<p>pageType: &#8220;entityrecord&#8221;,<\/p>\n<p>entityName: &#8220;contact&#8221;,<\/p>\n<p>formType: 2,<\/p>\n<p>};<\/p>\n<p>var navigationProperty = {<\/p>\n<p>target: 2,<\/p>\n<p>width: {value: 80, unit:&#8221;%&#8221;},<\/p>\n<p>position: 1<\/p>\n<p>};<\/p>\n<p>Xrm.Navigation.navigateTo(pageProperty, navigationProperty);<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-23480\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1navigateTo-Client-API.png\" alt=\"navigateTo Client API\" width=\"1365\" height=\"609\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1navigateTo-Client-API.png 1365w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1navigateTo-Client-API-300x134.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1navigateTo-Client-API-768x343.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1navigateTo-Client-API-1024x457.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1navigateTo-Client-API-660x294.png 660w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p><strong>Open existing CRM record<\/strong><\/p>\n<p>Here we have opened existing CRM record of contact entity.<\/p>\n<p>var pageProperty = {<\/p>\n<p>pageType: &#8220;entityrecord&#8221;,<\/p>\n<p>entityName: &#8220;contact&#8221;,<\/p>\n<p>formType: 2,<\/p>\n<p>entityId: &#8220;979dfe31-0686-ea11-a811-000d3a579c9c&#8221;\/\/guid of record<\/p>\n<p>};<\/p>\n<p>var navigationProperty = {<\/p>\n<p>target: 2,<\/p>\n<p>width: { value: 80, unit: &#8220;%&#8221; },<\/p>\n<p>position: 1<\/p>\n<p>};<\/p>\n<p>Xrm.Navigation.navigateTo(pageProperty, navigationProperty);<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-23481\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2navigateTo-Client-API.png\" alt=\"navigateTo Client API\" width=\"1364\" height=\"606\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2navigateTo-Client-API.png 1364w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2navigateTo-Client-API-300x133.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2navigateTo-Client-API-768x341.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2navigateTo-Client-API-1024x455.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2navigateTo-Client-API-660x293.png 660w\" sizes=\"(max-width: 1364px) 100vw, 1364px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>With the help of navigateTo Client API, we can open main form of CRM record in dialog.<\/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\">One Pic = 1000 words! Analyze data 90% faster with visualization apps!<\/div><\/div><\/h2>\n<p style=\"text-align: left;\"><em>Get optimum visualization of Dynamics 365 CRM data with &#8211;<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3lYvozZ\" target=\"_blank\" rel=\"noopener noreferrer\">Kanban Board<\/a> <\/strong>\u2013 Visualize Dynamics 365 CRM data in Kanban view by categorizing entity records in lanes and rows as per their status, priority, etc.<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3lCSBaA\" target=\"_blank\" rel=\"noopener noreferrer\">Map My Relationships<\/a><\/strong> \u2013 Map My Relationships \u2013 Visualize connections and relationships between Dynamics 365 CRM entities or related records in a Mind Map view.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction With 2020 Release Wave 1 Update for Dynamics 365, we can open main form of CRM record in dialog using navigateTo Client API. Earlier, we used Xrm.Navigation.openForm\u00a0method to open CRM record and this method opened the CRM record in new window or same window of browser. Using navigateTo Client API, we can open the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/05\/now-open-crm-record-in-dialog-using-navigateto-client-api\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":23479,"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],"tags":[2036],"class_list":["post-23478","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-v9-2","tag-navigateto-client-api"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/23478","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=23478"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/23478\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/23479"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=23478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=23478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=23478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}