Using the below SPServices call, I can get the display name of the author of a list item:
$().SPServices({
operation: "GetListItems",
async: false,
listName: "MyList",
CAMLViewFields: "<ViewFields Properties='True' />",
CAMLQuery: "<Query><Where><Eq><FieldRef Name='ID' /><Value Type='Integer'>" + id + "</Value></Eq></Where></Query>",
completefunc: function (xData, Status) {
$(xData.responseXML).find("[nodeName='z:row']").each(function() {
author = $(this).attr("ows_Author");
});
}
});
This gets me a name like "43#;John Doe". How can I get the account name instead? Like "john.doe". So I can use it to get the user's manager's account name.
Thanks.