Posts

Showing posts from January, 2019

SharePoint File CRUD in REST

Image
Tutorial: CRUD on Files using REST Many projects revolve around CRUD operations on different types of Files. Hence, a tutorial is here to focus on CRUD on Files in SharePoint using Rest API. Course Booking Details: Dates Details Offer Book Jan 21, 2019 – SharePoint Rest Fundamentals Less Price for Collab365 Readers Book <img class="wp-image-3852 size-full" src="https://publishers.collab365.community/wp-content/uploads/sites/9/2019/01/File-1.png"/> REST File By Thangu-Tutorial Rest Url Construction for Files You need to know the Server Relative Path before you start. The Server Relative Path mostly refers to the Link after the sharepoint site like https://thangu.sharepoint.com.If your site is https://thangu.sharepoint.com/sites/dev, can you guess the Server Relative Path? Yes, the ServerRelativePath is /sites/dev Such paths are very useful if you refer the same file path from different domains and helps avoid broken links duri...

SharePoint Get Column Values in Few Lines

Here is the CSOM way to get the values of Selected columns from a List/Library. Change the name of the List/Library as per your needs. For basic introduction to CSOM, check out my other blog in the CSOM section, here 1. PowerShell CSOM #Get Values of selected column like TypeDoc in a Document Library like  SPDevBasics for a files #named  SPDevBasicsJSOM #Change the values based on your environment $User = "admin@xxx.onmicrosoft.com" $SiteURL = "https://xxx.sharepoint.com/sites/Assignments" $docName="SPDevBasics" $fileName="04.SPDevBasicsJSOM.pdf" $fieldName="TypeDoc" #Add references to SharePoint client assemblies $spPath="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\" Add-Type -Path ($spPath+"Microsoft.SharePoint.Client.dll") Add-Type -Path ($spPath+"Microsoft.SharePoint.Client.Runtime.dll") Add-Type -Path ($spPath+"Microsoft.SharePoint.Client.Search.d...