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 […]