{"id":443,"date":"2017-04-28T00:00:00","date_gmt":"2017-04-28T00:00:00","guid":{"rendered":"http:\/\/officedevblogs.wpengine.com\/?p=443"},"modified":"2021-11-15T10:43:46","modified_gmt":"2021-11-15T18:43:46","slug":"new-sharepoint-csom-version-released-for-office-365-april-2017","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/new-sharepoint-csom-version-released-for-office-365-april-2017\/","title":{"rendered":"New SharePoint CSOM version released for SharePoint Online &#8211; April 2017"},"content":{"rendered":"<div id=\"body-content\">\n<p>We are happy to announce availability of new&nbsp;SharePoint Client Side Object Model (CSOM) version targeted for the Office 365 or more specifically for SharePoint and Project Online. This release again contains&nbsp;few updates on the existing SharePoint CSOM assemblies and some maintenance changes.&nbsp;Probably most interesting&nbsp;included capability is the&nbsp;<span><em>DeclareItemAsRecordWithDeclarationDate()<\/em> for records creation. This is targeted for the migration scenarios where you&#8217;d need to re-assign record declaration date for migrated item based on its original value in source system.&nbsp;<\/span><\/p>\n<p>You can find the latest CSOM package for SharePoint Online, including the Project Online CSOM assembly, from the <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.SharePointOnline.CSOM\">NuGet gallery<\/a> with an id of &#8216;<em>Microsoft.SharePointOnline.CSOM<\/em>&#8216;. We are also working on updating the redistributable package at some point, but you can already right now start using some of these new capabilities in your solutions. We do recommend you to use the NuGet Package to gain access on latest version, rather than downloading&nbsp;the SDK to your machine.<\/p>\n<p>Version of the newly released CSOM package is <strong>16.1.6420.1200<\/strong>. Previous&nbsp;versions of the NuGet have&nbsp;<strong>not<\/strong> been removed, so that your existing solutions will continue working without issues and you can decide when the new version is taken into use.&nbsp;Notice that even though the Nuget version is increased to 16.1.6420.1200, actual assembly version of the released assemblies is 16.1.0.0. You can also check the version of the assemblies from the <em>File Version attribute<\/em>, which aligns with the NuGet version.<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" width=\"1183\" height=\"607\" alt=\"Picture from VS2017 with NuGet gallery open showing Microsoft.SharePointOnline.CSOM package with the updated version\" src=\"https:\/\/officedevblogs.wpengine.com\/wp-content\/uploads\/2018\/05\/SPCSOMNuget16164201200.png\"><\/p>\n<p><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=35588\">SharePoint Online Management Shell<\/a>&nbsp;will be also updated during upcoming days to match with this CSOM release. <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/office\/jj193041.aspx\">MSDN reference API documentation<\/a>&nbsp;was last time updated during March and is targeted to get refresh during next few weeks again.&nbsp;&nbsp;<\/p>\n<p><strong><em>Notice<\/em><\/strong>&nbsp;that since this NuGet&nbsp;package is targeted to SharePoint Online, you cannot use it directly in on-premises environments (SharePoint 2013 or 2016). This is because of the server side dependencies of the APIs. CSOM versioning model and&nbsp;dependency to your target environment is clarified in following blog post &#8211; <a href=\"http:\/\/officedevblogs.wpengine.com\/using-correct-csom-version-for-sharepoint-customizations\">Using correct Client Side Object Model (CSOM) version for SharePoint customizations<\/a>.&nbsp;We have released separate NuGet packages for on-premises. See following blog post for additional details &#8211; <a href=\"https:\/\/officedevblogs.wpengine.com\/sharepoint-csom-versions-for-on-premises-released-as-nuget-packages\">SharePoint CSOM versions for on-premises released as NuGet packages<\/a>.<\/p>\n<h2>New properties and methods cross assemblies<\/h2>\n<p>Here&#8217;s a raw list of all the changes in the classes,&nbsp;properties and methods within this package.&nbsp;<\/p>\n<h2>Microsoft.SharePoint.Client<\/h2>\n<p>Following properties, classes and methods have been <strong>added.<\/strong><\/p>\n<ul>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.CamlQuery.FolderServerRelativePath\n<\/li>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.Field.CustomFormatter<\/li>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.Field.ShowInFiltersPane\n<\/li>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.List.DefaultItemOpenUseListSetting<\/li>\n<li>public <strong>method<\/strong> Microsoft.SharePoint.Client.ListItem.SetComplianceTag<\/li>\n<li>public <strong>enum<\/strong> value Microsoft.SharePoint.Client.ListPageRenderType.DropOffLibrary<\/li>\n<li>public <strong>enum<\/strong> value Microsoft.SharePoint.Client.ListTemplateType.AppFilesCatalog<\/li>\n<li>public <strong>enum<\/strong> value Microsoft.SharePoint.Client.ListTemplateType.FormulasTable<\/li>\n<li>public <strong>enum<\/strong> value Microsoft.SharePoint.Client.ListTemplateType.RecipesTable\n<\/li>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.ObjectSharingSettings.BlockPeoplePickerAndSharing<\/li>\n<li>public <strong>enum<\/strong> Microsoft.SharePoint.Client.ShowInFiltersPaneStatus\n<\/li>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.Site.GeoLocation\n<\/li>\n<\/ul>\n<h2>Microsoft.Office.Client.Policy<\/h2>\n<p>Following properties, classes and methods have been <strong>added.<\/strong><\/p>\n<ul>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyEvent.EventTags<\/li>\n<li>public <strong>method<\/strong> Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyStoreProxy.OpenBinaryStreamForOriginalItem<\/li>\n<li>public <strong>method<\/strong> Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyStoreProxy.RetagReviewItemsWithMetas<\/li>\n<li>public <strong>method<\/strong> Microsoft.SharePoint.Client.RecordsRepository.Records.DeclareItemAsRecordWithDeclarationDate\n<\/li>\n<\/ul>\n<p>Following&nbsp;items have been <strong>REMOVED<\/strong> from this assembly<\/p>\n<ul>\n<li>public <strong>property<\/strong> Microsoft.SharePoint.Client.CompliancePolicy.SPPolicyEvent.EventTag\n<\/li>\n<\/ul>\n<p><span style=\"font-size: large\"><em>&ldquo;Sharing is caring&rdquo;<\/em><\/span><\/p>\n<hr>\n<p><i><a href=\"https:\/\/twitter.com\/vesajuvonen\">Vesa Juvonen<\/a>, Senior Program Manager, OneDrive-SharePoint Engineering, Microsoft &#8211; 28th&nbsp;of April&nbsp;2017<\/i><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to announce availability of new&nbsp;SharePoint Client Side Object Model (CSOM) version targeted for the Office 365 or more specifically for SharePoint and Project Online. This release<\/p>\n","protected":false},"author":69217,"featured_media":444,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint-framework"],"acf":[],"blog_post_summary":"<p>We are happy to announce availability of new&nbsp;SharePoint Client Side Object Model (CSOM) version targeted for the Office 365 or more specifically for SharePoint and Project Online. This release<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69217"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/444"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}