Posts

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...

SharePoint Coding in Few Lines - Xmas 2018

Image
Xmas Gift 2018 from Thangu – SP Coding in Few Lines <img class="wp-image-3576 size-full" title="Xmas Thangu SharePoint gift" src="https://publishers.collab365.community/wp-content/uploads/sites/9/2018/12/Xmas.png"/> Xmas Thangu SharePoint gift Why bother about Simple Code Solutions? <img class="wp-image-3574 size-large" title="Few lines in SharePoint" src="https://publishers.collab365.community/wp-content/uploads/sites/9/2018/12/CityvsVillage-1024x271.png"/> Few lines in SharePoint Which scene is better? A simple village or a complex City? Few lines of coding is better than many lines of coding. Long ago, developers were paid for writing many lines of code and charged for a number of lines of code. Recently, even non-developers can achieve great things with tools like PowerApps, SharePoint Designer, InfoPath and SharePoint itself. However, these tools are complex and ...

Simple SharePoint Crud with PnP

Image
Simple SharePoint Crud with PnP Simple is Superb. I have driven in Pittsburgh and missed the simple straight highways. There are various ways to do CRUD coding in SharePoint. I am using PowerShell to explain the CRUD development using CSOM,REST etc. Here, I am focussing on the simplest of all CRUD operations for developers with one line of code. PnP PowerShell Working on PnP PowerShell is applicable even to administrators with little coding knowledge who can focus on writing their ideas in single lines, similar to writing sentences in English. If you want to create a site without clicking often from UI, you can use the following command: New-PnPWeb -Title "Site1" -Url "Site1" -Description "Dev SubSite" -Template "STS#0" 1 New - PnPWeb - Title "Site1" - Url "Site1" - Description "Dev SubSite" - Template "STS#0" Many times, I forget where is that...