{"id":6191,"date":"2017-08-09T18:28:09","date_gmt":"2017-08-09T12:58:09","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=6191"},"modified":"2022-09-02T15:48:39","modified_gmt":"2022-09-02T10:18:39","slug":"set-the-metadata-of-a-sharepoint-file-using-rest","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/","title":{"rendered":"Set the metadata of a SharePoint file using REST"},"content":{"rendered":"<p><strong>Introduction:<\/strong><\/p>\n<p>In our earlier <a href=\"https:\/\/www.inogic.com\/blog\/2015\/10\/programmatically-create-folders-and-upload-files-in-sharepoint-server-2013-through-plug-inworkflow\/\" target=\"_blank\" rel=\"noopener noreferrer\">blog<\/a>, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST.<\/p>\n<p>In this blog, we will see how we can set the metadata of the uploaded files using REST.<!--more--><\/p>\n<p><strong>Below is the code snippet to set the<\/strong><strong> metadata of a file using REST:<\/strong><\/p>\n<pre class=\"lang:default decode:true\">\/\/Here first create the JSON string of file metadata\r\nstring result = @\"{'__metadata': { 'type': 'SP.ListItem'}, 'Aliases':'My File.docx', 'Owner':'CRM Owner', 'Date':'1\/7\/2017'}\";\r\nstring siteUrl = \u201chttps:\/\/crmtrial.sharepoint.com\u201d \r\nUri spSite = new Uri(siteUrl);\r\nprivate SpoAuthUtility _spo = SpoAuthUtility.Create(spSite, _username, WebUtility.HtmlEncode(_password), false);\r\n\/\/read the digest\r\nstring digest = _spo.GetRequestDigest();\r\n\/\/convert JSON data to bytes\r\nbyte[] content = ASCIIEncoding.ASCII.GetBytes(result);\r\n\r\n\/\/define the file URL to set the metadata\r\nstring fileURL = Account\/Test Account Folder\/TestFile.docx;\r\nvar requestUrl = string.Format(\"{0}\/_api\/web\/GetFileByServerRelativeUrl('{1}')\/ListItemAllFields\", siteURL, fileURL);\r\n\r\nvar webRequest = (HttpWebRequest)HttpWebRequest.Create(requestUrl);\r\n                webRequest.Headers.Add(\"X-RequestDigest\", digest);\r\n                webRequest.Headers.Add(\"X-HTTP-Method\", \"PATCH\");\r\n                webRequest.Headers.Add(\"If-Match\", \"*\");\r\n                webRequest.Accept = \"application\/json;odata=verbose\";\r\n                webRequest.ContentType = \"application\/json;odata=verbose\";\r\n                webRequest.Method = \"POST\";\r\n\r\n                \/\/ Send a json odata request to SPO rest services to fetch all list items for the list.\r\n                byte[] result = HttpHelper.SendODataJsonRequest(\r\n                  new Uri(requestUrl),\r\n                  \"POST\", \/\/ reading data from SP through the rest api usually uses the GET verb \r\n                  content,\r\n                  webRequest,\r\n                  _spo \/\/ pass in the helper object that allows us to make authenticated calls to SPO rest services\r\n                  );\r\n\r\n                \/\/read the response\r\n                string response = Encoding.UTF8.GetString(result, 0, result.Length);<\/pre>\n<p>If you go to the uploaded file\u2019s properties in SharePoint, you can see the metadata of the file as shown in the screenshot below;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-6192\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png\" alt=\"Set the metadata of a SharePoint file using REST\" width=\"604\" height=\"289\" \/><\/p>\n<p>Hope this helps!<\/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\">Generate Your Own New Leads Within Microsoft Dynamics 365 CRM<\/div><\/div><\/h2>\n<p><em>Contact us for a <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">demo<\/a> to know more about how <a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> can help you to generate new leads from within Microsoft Dynamics 365 CRM.<\/em><\/p>\n<p><em><a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> is a 5-star rated, preferred business app on the <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a> that is Certified for Microsoft Dynamics 365 (CfMD) and comes with powerful features like Appointment Planning, Sales Routing, Territory Management, Heat Maps, Geo-analytical Dashboards and more that empower organizations to add more value to their CRM data, improve sales &amp; service processes, and achieve high ROI.<\/em><\/p>\n<p><em>Get your <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">free trial<\/a> from our Website or <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a>!<\/em><\/p>\n<p><em>&#8216;If data is the new oil, location intelligence is ??\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST.<\/p>\n","protected":false},"author":13,"featured_media":6194,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,19,53],"tags":[1460,1596,1609],"class_list":["post-6191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-crm","category-sharepoint","tag-rest","tag-set-the-metadata-of-a-sharepoint-file","tag-sharepoint"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-08-09T12:58:09+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-09-02T10:18:39+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#blogposting\",\"name\":\"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Set the metadata of a SharePoint file using REST\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/Set-the-metadata-of-a-SharePoint-file-using-REST1-1-1.png\",\"width\":300,\"height\":300},\"datePublished\":\"2017-08-09T18:28:09+05:30\",\"dateModified\":\"2022-09-02T15:48:39+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Dynamics CRM, SharePoint, REST, Set the metadata of a SharePoint file, SharePoint\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#listItem\",\"name\":\"Set the metadata of a SharePoint file using REST\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#listItem\",\"position\":3,\"name\":\"Set the metadata of a SharePoint file using REST\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/\",\"name\":\"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\\\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \\\/\\\/Here first\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/Set-the-metadata-of-a-SharePoint-file-using-REST1-1-1.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#mainImage\",\"width\":300,\"height\":300},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/08\\\/set-the-metadata-of-a-sharepoint-file-using-rest\\\/#mainImage\"},\"datePublished\":\"2017-08-09T18:28:09+05:30\",\"dateModified\":\"2022-09-02T15:48:39+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first","canonical_url":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#blogposting","name":"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Set the metadata of a SharePoint file using REST","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST1-1-1.png","width":300,"height":300},"datePublished":"2017-08-09T18:28:09+05:30","dateModified":"2022-09-02T15:48:39+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#webpage"},"articleSection":"Dynamics 365, Dynamics CRM, SharePoint, REST, Set the metadata of a SharePoint file, SharePoint"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#listItem","name":"Set the metadata of a SharePoint file using REST"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#listItem","position":3,"name":"Set the metadata of a SharePoint file using REST","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/","name":"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST1-1-1.png","@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#mainImage","width":300,"height":300},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/#mainImage"},"datePublished":"2017-08-09T18:28:09+05:30","dateModified":"2022-09-02T15:48:39+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first","og:url":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png","article:published_time":"2017-08-09T12:58:09+00:00","article:modified_time":"2022-09-02T10:18:39+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Set the metadata of a SharePoint file using REST - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction: In our earlier blog, we discussed about creating folders and uploading files on the SharePoint Online through workflows\/plugins using REST. In this blog, we will see how we can set the metadata of the uploaded files using REST. Below is the code snippet to set the metadata of a file using REST: \/\/Here first","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/08\/Set-the-metadata-of-a-SharePoint-file-using-REST.png","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"6191","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 06:24:55","updated":"2025-07-04 03:11:30","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSet the metadata of a SharePoint file using REST\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"Set the metadata of a SharePoint file using REST","link":"https:\/\/www.inogic.com\/blog\/2017\/08\/set-the-metadata-of-a-sharepoint-file-using-rest\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6191","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=6191"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6191\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/6194"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=6191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=6191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=6191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}