Posts

Showing posts from January, 2020

How delete all items/empty recycle bin of a SharePoint site?

Delete all items/empty recycle bin of a SharePoint site: You can delete all the items of recycle bin using below tips The below trick will work in SharePoint 2007-2013/classic mode of SharePoint. 1. Opent recycle bin of SP site 2. Enter javascript:emptyItems() in the search bar/browser adress bar 3. One pop-up will open like Do you want to delete all items of recycle bin ?  if click OK then it will delete all items from the recycle bin otherwise CANCEL will return to recycle bin page In Latest version there is button for emptying recycle bin

How to upload a document file in SharePoint list with REST API using jquery?

   Upload a document file in SharePoint list with REST API using jquery: Use the below snippet code <html> <head> <script src="/Site%20Assets/js/jquery-1.11.1.min.js"></script> <script src="/Site%20Assets/Assets/Jquery/jquery-2.2.4.min.js"></script> </head> <body> <div>         <input id="uploadFile" type="file"> </div> <button type="button" id="saveDocuments">Save </button> <script> $(document).ready(function(){     var listName = 'ERepairShop';     function getFileBuffer(file) {         var deferred = $.Deferred();         var reader = new FileReader();         reader.onload = function (e) {             deferred.resolve(e.target.result);         }         reader.onerror = function (e) {     ...

How to get List Item Entity Type Full Name of a SharePoint list using REST API ?

REST API to get list item Entity Type Full Name: siteurl( AbsoluteUrl ) + _api/Web/Lists/getbytitle('ListName')/ListItemEntityTypeFullName or   _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('SPList')/items?select=EntityTypeFullName **Use this above API just replacing absolute site URL and list name **Then put this prepared URL into browser and press enter button and obtain list entity type full name of related list. **You will get ListEntityTypeFullName like " SP.Data.EmployeeListItem " **Employee(It is a SharePoint list name)

How to get Get all folder and subfolder of SP Documents using REST API ?

Get all folder and Subfolder of SP Documents using a REST API : You can get all the folders of Documents by using below REST API. "/_api/web/lists/getbytitle('Documents')/items?$select=FileLeafRef,FileRef&$filter=FSObjType eq 1" OR "/_api/web/lists/getbytitle('Documents')/items?$select=FileLeafRef,FileRef&$filter=ContentType eq 'Folder"

How to get GUID of SharePoint list of given List Name using REST API?

Image
  Get GUID of SharePoint(SP) list of given List Name: Use one of below REST API to get guid of list- REST API 1 will give you guid of SPList only. 1. _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('SPList')/id REST API 2 & 3 will give you guid, EntityTypeFullName, EntityTypeName etc of SPList 2._spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('SPList')/items?select=id 3.  _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/getbytitle('SPList')/items?select=EntityTypeFullName