{"id":833,"date":"2014-08-13T09:34:08","date_gmt":"2014-08-13T04:04:08","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=833"},"modified":"2014-08-13T09:34:08","modified_gmt":"2014-08-13T04:04:08","slug":"creating-a-new-organization-in-crm-2013-sp1-without-service-enhancements-already-enabled","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2014\/08\/creating-a-new-organization-in-crm-2013-sp1-without-service-enhancements-already-enabled\/","title":{"rendered":"Creating a New Organization in CRM 2013 SP1 without Service enhancements already enabled"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">After installing SP1 on existing CRM 2013 on-premise server, we need to enable the customer service enhancement features for each Org from Settings &#8211;&gt;Administration &#8211;&gt;\u00a0Install Product Updates as shown in below screenshot:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img16.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-834\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img16.jpg\" alt=\"img1\" width=\"819\" height=\"456\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Once enabled, the Update can\u2019t be uninstalled. <\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>What if you want to create an Org without the Product Updates installed on CRM 2013 SP1?<\/strong><\/p>\n<p style=\"text-align: justify;\">Once you install SP1 on CRM 2013 Server, then every org you create after that will have the product updates already installed and enabled by default and you do not need to manually install\u00a0the product update.<\/p>\n<p style=\"text-align: justify;\">If you want to create Org with no service enhancement enabled on CRM 2013 SP1 Server, then you need to run below power shell script before you create the Organization:<\/p>\n<p>add-pssnapin Microsoft.Crm.Powershell<\/p>\n<p>$itemSetting = new-object &#8216;System.Collections.Generic.KeyValuePair[String,Object]'(&#8220;OptinProvisioningEnabled&#8221;,0)<\/p>\n<p>$configEntity = New-Object &#8220;Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity&#8221;<\/p>\n<p>$configEntity.LogicalName=&#8221;Deployment&#8221;<\/p>\n<p>$configEntity.Attributes = New-Object &#8220;Microsoft.Xrm.Sdk.Deployment.AttributeCollection&#8221;<\/p>\n<p>$configEntity.Attributes.Add($itemSetting)<\/p>\n<p>Set-CrmAdvancedSetting -Entity $configEntity<\/p>\n<p style=\"text-align: justify;\">After running power shell scripts, create the Org and you will find the same screen as given above which will ask\u00a0you to manually install the product updates.<\/p>\n<p style=\"text-align: justify;\">By executing this power shell command, we change the OptinProvisioningEnabled column value to O.<\/p>\n<p>To again set default behavior, run the same script and simply replace O with 1 as \u201c(&#8220;OptinProvisioningEnabled&#8221;, 1)\u201d<\/p>\n<p style=\"text-align: justify;\">You can also check the value for the same \u201cOptinProvisioningEnabled\u201d in the SQL Database that the Bit column is set to 1 after you install SP1 on CRM 2013 On-Premise.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img22.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-835\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img22.jpg\" alt=\"img2\" width=\"1004\" height=\"263\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">If you want to check programmatically whether the product updates for customer service enhancements are enabled or not, then you can check in MS CRM 2013 SDK. We have given an example using OData query as below.<\/p>\n<p><em>Organization URL\/XRMServices\/2011\/OrganizationData.svc\/SolutionSet?$select=UniqueName&amp;$filter=UniqueName eq &#8216;ServiceEnhancements610&#8217;<\/em><\/p>\n<p style=\"text-align: justify;\">After running above query, if the record with &#8216;unique name\u2019=\u201dServiceEnhancements610\u201d is returned then the respective Org has the service enhancements enabled. We have executed this ODATA query which returned below results as shown in screenshot:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img32.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-836\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img32.jpg\" alt=\"img3\" width=\"1044\" height=\"324\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Using the same query, the Org with no Service enhancement enabled will return the below result:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img42.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-837\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img42.jpg\" alt=\"img4\" width=\"1112\" height=\"202\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">The \u201cServiceEnhancements610\u201d solution is installed internally when the product updates are enabled and this solution is not visible in the Solutions Area Grid interface.<\/p>\n<p style=\"text-align: justify;\"><strong>Conclusion:<\/strong><\/p>\n<p style=\"text-align: justify;\">As this update is installed as solution component, we tried deleting\/uninstalling this solution programmatically using below query:<\/p>\n<p style=\"text-align: left;\"><strong>\u00a0<\/strong>\u00a0 \u00a0 \u00a0 \u00a0<span style=\"color: #00ccff;\">QueryExpression<\/span> queryImportedSolution = <span style=\"color: #0000ff;\">new<\/span> <span style=\"color: #00ccff;\">QueryExpression<\/span><\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EntityName = <span style=\"color: #800000;\">&#8220;solution&#8221;<\/span>,<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ColumnSet = <span style=\"color: #0000ff;\">new <\/span><span style=\"color: #00ccff;\">ColumnSet<\/span> (<span style=\"color: #0000ff;\">newstring<\/span>[] { <span style=\"color: #800000;\">&#8220;solutionid&#8221;<\/span>,<span style=\"color: #800000;\"> &#8220;friendlyname&#8221;<\/span> }),<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Criteria = <span style=\"color: #0000ff;\">new<\/span> <span style=\"color: #00ccff;\">FilterExpression<\/span>()<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 };<\/p>\n<p style=\"text-align: left;\">\u00a0 \u00a0 \u00a0 \u00a0 queryImportedSolution.Criteria.AddCondition(<span style=\"color: #800000;\">&#8220;uniquename&#8221;<\/span>, <span style=\"color: #00ccff;\">ConditionOperator<\/span>.Equal, <span style=\"color: #800000;\">&#8220;ServiceEnhancements610&#8221;<\/span>);<\/p>\n<p style=\"text-align: left;\">\u00a0 \u00a0 \u00a0 \u00a0 <span style=\"color: #00ccff;\">Entity<\/span> ImportedSolution = (<span style=\"color: #00ccff;\">Entity<\/span>)_serviceProxy.RetrieveMultiple(queryImportedSolution).Entities[0];<\/p>\n<p style=\"text-align: left;\">\u00a0 \u00a0 \u00a0 \u00a0_service.Delete(ImportedSolution.LogicalName, ImportedSolution.Id);<\/p>\n<p style=\"text-align: justify;\">But, the request terminated with error \u201cAttempting to delete a restricted solution\u201d as shown in below screenshot:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img52.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-838\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/08\/img52.jpg\" alt=\"img5\" width=\"839\" height=\"378\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">So once the Service Enhancements updates are installed on an Org there is no rollback option available.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: After installing SP1 on existing CRM 2013 on-premise server, we need to enable the customer service enhancement features for each Org from Settings &#8211;&gt;Administration &#8211;&gt;\u00a0Install Product Updates as shown in below screenshot: Once enabled, the Update can\u2019t be uninstalled. What if you want to create an Org without the Product Updates installed on CRM\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2014\/08\/creating-a-new-organization-in-crm-2013-sp1-without-service-enhancements-already-enabled\/\">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":[13,21,22,24],"tags":[596,1370,1587,1588,1638],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-customizations","category-dynamics-crm-2013","category-dynamics-crm-2015","category-dynamics-crm-2016","tag-dynamics-crm-2013-sp1","tag-product","tag-service-updates","tag-serviceenhancements610","tag-solution"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/833","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=833"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}