How to get Createdby Column in Sharepoint 2013/2016 or Office 365 using REST API?

Hello SharePointers,

Below is the script to get Created by Column in Sharepoint 2010/2013/2016 using REST API.

var Ownurl = _spPageContextInfo.webAbsoluteUrl + “_api/web/lists/getbytitle(‘ YOurListname’)/items?$filter=Id eq 1&$expand=Author&$select=Author/Id”

url: Ownurl,
headers: { Accept: “application/json;odata=verbose” },
success: function (data) {
var items = data.d.results;
if (items[0].Author!= “”) {
author = items[0].Author;
},eror: function (data) {
alert(“An error occurred. Please try again.”);

Happy Sharepointing Folks 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *