Wednesday, March 2, 2016

Get CreatedBy using REST API SharePoint

var listname="Employee"


var owner = _spPageContextInfo.webAbsoluteUrl + "_api/web/lists/getbytitle('Listname')/items?$filter=Id eq 1&$expand=Author&$select=Author/Id"


alert(owner);

No comments:

Post a Comment