Sharepoint Rest Api

Working with the SP Rest Api i found some basics that are here to remember.

get by title
var u = "/sites/newportal/_api/Web/lists/getbytitle('Site Pages')/items"

select person field
u += "?$select=Title,Assigned_x0020_To0/Name,FileRef,FileDirRef" +

get folder
var u = "/sites/newportal/_api/Web/GetFolderByServerRelativePath" + 

but to really get a person data by folder in site pages i had to use search

var u = "/_api/search/query?" +
            "querytext='ParentLink:NewEmp'" +


Popular posts from this blog

Asp.Net Ending Response options, Response.End() vs CompleteRequest()

c# Service Play Sound with NAudio example by Moshe

JS/JQ simulate Enter event