Showing posts with label Javascript SharePoint. Show all posts
Showing posts with label Javascript SharePoint. Show all posts

Thursday, March 18, 2021

18 Mar

How to read more than 5000 items from document library in SharePoint RestApi?

First call a ajax function with parameters "/_api/Web/Lists/GetByTitle(ListName)/Items?$orderby=Id desc&$top=1". Now you will get the latest added "Id".Now Divide the Id returned by the ajax by 5000. (Id/5000) So that you will get a result of how many times you need to perform the ajax.Now you can perform the ajax...

Friday, July 24, 2020

24 Jul

JavaScript : How to Convert UTC Date Time to local/EST Hours using JavaScript?

In this below script, Convert UTC Date Time to local/EST Hours In this article , we will use default java-script action Type 1: var localTime = new Date(); var localKolkata = moment.tz(localTime, "Asia/Kolkata").format("hh:mm:ss"); Javascript script provide date and time format. Type 2: function getLocalTime(i)...

Wednesday, November 29, 2017

29 Nov

Simplified CRUD Operation Using Entity Framework

 I am going to tell you  very simple manner to do the CRUD operation using LocalDB with entity framework and how to use code first Database migration.After reading this article you are going to know about,Uses and purpose of LocalDb.Connection string about LocalDb.Model Binding.What is DBContext class ?Step by...