In a SharePoint Hosted App, with the following code, I can retrieve the list of tasks, every task containing, among others, the identifiers AssignedToId
(an array of integers):
executor.executeAsync({
url: appweburl + "/_api/SP.AppContextSite(@target)/web/lists' +
'/getByTitle('MyTasks')/items?@target='" + hostweburl + "'",
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: successHandler,
error: errorHandler
});
Instead of the identifier of the users, I want to show the titles of the persons. I can retrieve the title through GetUserById(1)
or GetUsers
, but this leads to an additional AJAX call I want to avoid.
Is there a way to retrieve this information in a single call?