Let's SharePoint

REST API’s

  1. HOME
  2. REST API's
July 25, 2018 / Last updated : August 15, 2018 Sethu Client Object Model

How to validate SharePoint list for First and Last name should be unique in Office 365/SharePoint online/2010/2013/2016?

Hello SharePointers, SharePoint online doesn’t allow two columns to be set as unique value for validation. Let us consider the business scenario, where first name and last name has to be unique in a SharePoint list. This can be achieved using REST API calls . Below are the code snippet that will help you to […]

May 20, 2017 / Last updated : May 20, 2017 Sethu REST API's

How to Get List of folders and files in SharePoint Document library using REST API in SharePoint online/Office 365?

Hello SharePointers, Below is the REST API snippet to find folders and files inside the folder url of a sharepoint document library. var folderUrl = ‘myfolder/2016’; var url = _spPageContextInfo.webServerRelativeUrl + “/_api/Web/GetFolderByServerRelativeUrl(‘” + folderUrl + “‘)?$expand=Folders,Files”; $.getJSON(url,function(data,status,xhr){ for(var i = 0; i < data.Files.length;i++){ console.log(data.Files[i].Name); } for(var i = 0; i < data.Folders.length;i++){ console.log(data.Folders[i].Name); } […]

January 19, 2017 / Last updated : January 19, 2017 Sethu Client Side Object Model

How to get Createdby Column in Sharepoint 2013/2016 or Office 365 using REST API?

Hello SharePointers, Below is the script to get Created by Column in Sharepoint 2010/2013/2016 using REST API. var Ownurl = _spPageContextInfo.webAbsoluteUrl + “_api/web/lists/getbytitle(‘ YOurListname’)/items?$filter=Id eq 1&$expand=Author&$select=Author/Id” $.ajax({ url: Ownurl, headers: { Accept: “application/json;odata=verbose” }, async:false, success: function (data) { var items = data.d.results; if (items[0].Author!= “”) { author = items[0].Author; } },eror: function (data) { alert(“An […]

September 15, 2016 / Last updated : September 15, 2016 Sethu Office 365

How to get the Display Form URL, using REST API in Office 365

Hello SharePointers, In this blog, we will see how to get the Display Form URL, using REST API in SharePoint online/Office 365. function getListItemFormUrl(webUrl, listName,listItemId, formTypeId,complete, failure) { $.ajax({ url: webUrl + “/_api/web/lists/GetByTitle(‘” + listName + “‘)/Forms?$select=ServerRelativeUrl&$filter=FormType eq ” + formTypeId, method: “GET”, headers: { “Accept”: “application/json; odata=verbose” }, success: function (data) { var url = […]

November 25, 2015 / Last updated : November 25, 2015 Sethu REST API's

How to check if the SharePoint page is in Draft version or not using REST API -SharePoint 2013?

In this blog, I will give you the piece of code to check if  the sharepoint page is draft version  or not using REST API’s. Below is the piece of code to achieve the same. $.ajax({url: “/_api/web/getFileByServerRelativeUrl(‘” + pageUrl + “‘)/Level”, headers: { “Accept”: “application/json; odata=verbose” }, success: function(data) { if(data.d.level== 2) { alert(‘your page is already in Draft […]

November 25, 2015 / Last updated : November 25, 2015 Sethu REST API's

How to check if the SharePoint page is Published or not using REST API -SharePoint 2013?

In this blog, I will give you the piece of code to check if  the sharepoint page is published or not using REST API’s. Below is the piece of code to achieve the same. $.ajax({url: “/_api/web/getFileByServerRelativeUrl(‘” + pageUrl + “‘)/Level”, headers: { “Accept”: “application/json; odata=verbose” }, success: function(data) { if(data.d.level== 0) { alert(‘your page is already published’); else […]

April 13, 2015 / Last updated : November 19, 2015 Sethu Client Side Object Model

How to show List items in SharePoint 2013 Using REST API and Content Editor Web Part

Hi Fellow Share Pointers, SharePoint 2013 introduces a new set of API’s – REST APIs to access SharePoint data in a faster and cleaner way. SharePoint REST API’s provide you the client side compatibility to work with SharePoint List and Library objects. With the help of SharePoint REST APIs we can work with the following […]

Recent posts

How to insert table in Modern Pages using PnP Powershell in Office 365/Sharepoint Online?

June 7, 2019

How to set up Access Requests in SharePoint online using Powershell?

May 11, 2019

How to change the default SharePoint suite logo in SharePoint 2013/2016/2019?

April 30, 2019

How to add metadata to Document libraries in SharePoint online using powershell.

April 27, 2019

How to get Sharepoint site details using Powershell in Office 365?

April 17, 2019

How to get alerts for a specific policy in Cloud app security using Powershell

April 16, 2019

How to get the list of custom apps in App catalog using Powershell?

April 9, 2019

How to get the list of policies in Microsoft Cloud app security using window powershell?

April 4, 2019

How to get the list of List and Document library item counts in SharePoint online using Pnp Powershell ?

April 4, 2019

How to restore subsite in a Sharepoint online site collection using Pnp Powershell

April 2, 2019

Category

  • Anonymous access
  • Client Object Model
  • Client Side Object Model
  • Customization
    • Customization
  • Designer Workflows
  • Errors & Resolutions
  • Features
  • Google Analytics
  • InfoPath
  • Item Scheduling
  • JSOM
  • Nintex worflows
  • Office 365
  • Office 365 Groups
  • PnP JS Library
  • PowerShell
  • Powershell Online
  • REST API
  • REST API's
  • Server Side Object Model
  • SharePoint 2010
  • SharePoint 2010 Search
  • SharePoint 2013
  • SharePoint 2013 Search
  • SharePoint 2013 Workflows
  • SharePoint 2016
  • SharePoint 2019
  • SharePoint Designer
  • SharePoint Framework
  • SharePoint Online
  • SharePoint Pnp
  • SharePoint Usage Analytics
  • Unique values
  • User Profile Services
  • Windows Powershell
  • Workflow Manager

Archive

  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015

Copyright © Let's SharePoint All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.