{"id":6018,"date":"2017-07-05T18:23:07","date_gmt":"2017-07-05T12:53:07","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=6018"},"modified":"2022-02-15T16:47:00","modified_gmt":"2022-02-15T11:17:00","slug":"tip-resolve-unknown-dependency-issue-and-delete-an-entity-from-dynamics-365crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/07\/tip-resolve-unknown-dependency-issue-and-delete-an-entity-from-dynamics-365crm\/","title":{"rendered":"Tip: Resolve Unknown Dependency Issue and Delete an Entity from Dynamics 365\/CRM"},"content":{"rendered":"<h4><strong>Introduction:<\/strong><\/h4>\n<p style=\"text-align: justify;\">Recently we had a business requirement to delete a Custom Entity from Dynamics 365\/CRM as it was no longer needed. As we all know, to delete an Entity, first we need to remove all the dependencies of the referred Entity from the system views, sub-grids, and plugins, etc. registered on that Entity.<\/p>\n<h4 style=\"text-align: justify;\"><strong>Issue:<\/strong><\/h4>\n<p style=\"text-align: justify;\">We followed the steps and removed all the dependencies registered on the entity. But we were getting the <strong><em>\u2018Cannot Delete Component\u2019<\/em><\/strong> error as shown in the screenshot below;<\/p>\n<p><a title=\"https:\/\/appsource.microsoft.com\/en-us\/marketplace\/partners\/inogic?tab=Apps\" href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/07\/Resolve-Unknown-Dependency-Issue-and-Delete-an-Entity-from-Dynamics-CRM.jpg\"><img decoding=\"async\" class=\"wp-image-6016 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/07\/Resolve-Unknown-Dependency-Issue-and-Delete-an-Entity-from-Dynamics-CRM.jpg\" alt=\"Resolve Unknown Dependency Issue and Delete an Entity from Dynamics CRM\" width=\"623\" height=\"364\" \/><\/a>We checked the Details and found the items dependency as seen in the screenshot below;<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/07\/Resolve-Unknown-Dependency-Issue-and-Delete-an-Entity-from-Dynamics-CRM-1.jpg\"><img decoding=\"async\" class=\"wp-image-6014 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/07\/Resolve-Unknown-Dependency-Issue-and-Delete-an-Entity-from-Dynamics-CRM-1.jpg\" alt=\"Resolve Unknown Dependency Issue and Delete an Entity from Dynamics 365\" width=\"626\" height=\"413\" \/><\/a><strong>Solution:<\/strong><\/p>\n<p style=\"text-align: justify;\">As seen in the above screenshot, the SDK Message Processing Step is registered for the entity.<\/p>\n<p style=\"text-align: justify;\">However, there were no Plugins registered for the Custom entity.<\/p>\n<p style=\"text-align: justify;\">It took us time to figure it out the actual reason behind it. The reason was that it had activated the Business Rule with the scope \u2018<strong>Entity<\/strong>\u2019 as seen in the screenshot below;<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/07\/Resolve-Unknown-Dependency-Issue-and-Delete-an-Entity-from-Dynamics-CRM-2.jpg\"><img decoding=\"async\" class=\"wp-image-6015 aligncenter\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/07\/Resolve-Unknown-Dependency-Issue-and-Delete-an-Entity-from-Dynamics-CRM-2.jpg\" alt=\"Resolve Unknown Dependency Issue and Delete an Entity from Dynamics CRM\" width=\"645\" height=\"198\" \/><\/a>We simply deactivated it and were able to successfully delete the entity. \ud83d\ude42<\/p>\n<blockquote>\n<p style=\"text-align: justify;\"><strong><em>Note: If the Scope of the Business Rule is other than Entity i.e. either All Form or any particular Form then we don\u2019t need to deactivate the Business rule, it simply deletes the entity.<\/em><\/strong><\/p>\n<\/blockquote>\n<p>Hope this helps if you face the same issue.<\/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\"><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/mailchimp-dynamics-365-crm-integration-marketing-4-dynamics\" target=\"_blank\" rel=\"noopener\">Marketing4Dynamics<\/a> \u2013 Mailchimp and Dynamics 365 CRM integration to plan effective sales strategies, increase sales and improve ROI<\/div><\/div><\/h2>\n<ul>\n<li>Sync Audiences, Members and Tags from Mailchimp to CRM<\/li>\n<li>Sync CRM Marketing List (Contacts\/Leads) to Mailchimp<\/li>\n<li>Sync Campaigns and Member activities from Mailchimp to CRM<\/li>\n<li>Monitor and analyze Mailchimp campaign statistics through Dashboards in CRM<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Recently we had a business requirement to delete a Custom Entity from Dynamics 365\/CRM as it was no longer needed. As we all know, to delete an Entity, first we need to remove all the dependencies of the referred Entity from the system views, sub-grids, and plugins, etc. registered on that Entity. Issue: We\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2017\/07\/tip-resolve-unknown-dependency-issue-and-delete-an-entity-from-dynamics-365crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":6017,"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":[13,16,19],"tags":[496,1452,1453],"class_list":["post-6018","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizations","category-dynamics-365","category-dynamics-crm","tag-delete-custom-entity","tag-resolve-unknown-dependency-issue-dynamics-365","tag-resolve-unknown-dependency-issue-dynamics-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6018","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=6018"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6018\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/6017"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=6018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=6018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=6018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}