Posts

Showing posts from February, 2020

How many items can be fetched by a single call of SharePoint List REST API?

or How much the list view threshold for SP list? Solution: For normal SharePoit REST API- We can fetched only 100 items at a time. For below REST API you can get only 100 items at a time. SP List REST API : _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Company')/items" // company is the name of SharePoint list. But using $top in REST API one can get maximum of 5000 items from a SharePoint List API at time. SP List REST API : _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Company')/items?$top=5000" The above URL/REST API can give you 5000 items at a time. So the list view threshold for a SharePoint list is 5000 or Limit to get number of item from a SP list is 5000 items.

How fetch/get access token from a Microsoft Graph API?

Image
Fetch access token from a Microsoft Graph API/REST API: function   fetchTokenfromGraph () {    $ . ajax ({        "async" :   true ,        "crossDomain" :   true ,        "url" :   "https://cors-anywhere.herokuapp.com/https://login.microsoftonline.com/********-****-****-*****-*******/oauth2/v2.0/token" ,  // Pass your tenant id instead of star symbol        "method" :   "POST" ,        "headers" :  {            "content-type" :   "application/x-www-form-urlencoded"       },        "data" :  {            "grant_type" :   "client_credentials" ,  ...