{"id":449,"date":"2014-05-13T09:51:41","date_gmt":"2014-05-13T04:21:41","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=449"},"modified":"2014-05-13T09:51:41","modified_gmt":"2014-05-13T04:21:41","slug":"sub-grid-add-action-behavior-in-dynamics-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2014\/05\/sub-grid-add-action-behavior-in-dynamics-crm\/","title":{"rendered":"Sub-grid Add Action Behavior in Dynamics CRM"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">Since the new refresh forms, we now see sub grids added on the form by default instead of the left navigation links to see the related records. The + (add) button on the sub-grid however appears to work differently for the Case Sub-grid and the Contacts grid on the Account form.<\/p>\n<p style=\"text-align: justify;\">So when do we get a Lookup to choose from an existing record and when do we get a Quick Create Form to create a new record? This indeed is not a difficult question to answer.<\/p>\n<p style=\"text-align: justify;\">It all depends on the field requirement level of the lookup field in the relationship.<\/p>\n<p style=\"text-align: justify;\"><strong>Illustration:<\/strong><\/p>\n<p style=\"text-align: justify;\">If you are on the Account Entity Form and you want to add a contact for the same account, then when you click on the plus sign (Add) button near the Contact Grid, it will give you a lookup to search for the existing records along with a +New at the bottom to add new records.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img13.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-457\" alt=\"Contacts\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img13.jpg\" width=\"370\" height=\"170\" \/><\/a><br \/>\nThe lookup represents the Add Existing behavior in the earlier versions of Dynamics CRM. As the Company Name on the Contact Form is not mandatory, we can leave it empty and can later associate it with an account using the Add Existing\/Lookup feature on the Contacts Sub-grid.<\/p>\n<p style=\"text-align: justify;\"><span style=\"line-height: 1.5em;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img23.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-458\" alt=\"img2\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img23.jpg\" width=\"415\" height=\"368\" \/><\/a><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"line-height: 1.5em;\">If you in certain cases like to disable Add Existing feature and always be forced to create a new record to associate with the Account, we only need to make the Company Name mandatory (Refer below, Steps to make the Entity Field Mandatory).<\/span><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img32.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-459\" alt=\"img3\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img32.jpg\" width=\"498\" height=\"368\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><span style=\"line-height: 1.5em;\">Now, when we try to add a Contact for the Account we will get a Quick Create Form instead of a lookup. The reason is, while entering data for the new contact the company name is mandatory as a result any new Contact that will be created will have a Company Name associated with it.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"line-height: 1.5em;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img42.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-460\" alt=\"img4\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img42.jpg\" width=\"628\" height=\"287\" \/><\/a><\/span><\/p>\n<p style=\"text-align: justify;\"><strong><span style=\"line-height: 1.5em;\">Steps to make the Field mandatory:<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\">Step 1: Go To Settings -&gt; CUSTOMIZATIONS<br \/>\nStep 2: Select Customize the System<br \/>\nStep 3: Expand Entites by clicking on it<br \/>\nStep 4: Expand Contact and Select Fields<br \/>\nStep 5: Now, on the right hand side you`ll find the name of all the fields<br \/>\nStep 6: Search for parentcustomerid and open it (double click on it)<br \/>\nStep 7: You`ll see a Field Requirement field with Optional Selected<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img52.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-461\" alt=\"img5\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img52.jpg\" width=\"444\" height=\"107\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Step 8: Change it to Business Required<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img61.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-462\" alt=\"img6\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img61.jpg\" width=\"465\" height=\"132\" \/><\/a><br \/>\nStep 9: Save and Close<br \/>\nStep 10: Click Publish All Customizations (Important step)<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img71.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-463\" alt=\"img7\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/05\/img71.jpg\" width=\"499\" height=\"240\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong><span style=\"line-height: 1.5em;\">Conclusion:<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\">The + button behavior depends on the requirement level of the field in the relationship. By manipulating the requirement level you can control the + button behavior.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Since the new refresh forms, we now see sub grids added on the form by default instead of the left navigation links to see the related records. The + (add) button on the sub-grid however appears to work differently for the Case Sub-grid and the Contacts grid on the Account form. So when do\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2014\/05\/sub-grid-add-action-behavior-in-dynamics-crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"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":[21,22,24],"tags":[334,392,592,800,824,1426,1679],"class_list":["post-449","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm-2013","category-dynamics-crm-2015","category-dynamics-crm-2016","tag-contact","tag-crm-2013","tag-dynamics-crm","tag-field","tag-form","tag-relationship","tag-sub-grids"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/449","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=449"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/449\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}