var clientContext = new SP.ClientContext.get_current();
if (clientContext != undefined && clientContext != null) {
var webSite = clientContext.get_web();
this.list = webSite.get_lists().getByTitle("CustomList");
var fieldCreatedBy = this.listItem.get_item("Author");
var fieldModifiedBy = this.listItem.get_item("Editor");
alert("Created By: " + fieldCreatedBy.get_lookupValue());
alert("Modified By: " + fieldModifiedBy .get_lookupValue());
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Venkatesh RPosted May 1, 2019, 11:15 AM
Forgot the method names. Just a quick search landed here.
Gowtham RajamanickamPosted Apr 11, 2016, 1:42 AM
useful
Gowtham RajamanickamPosted Apr 11, 2016, 1:42 AM
informative