I was trying to update the Recently Changed App by adding the columns that show the last updated time and who made the update. The previous one can easily be done by adding LastUpdateDate into the query, but the later one is quite tricky to me.
I was trying to query the RevisionHistory as follow
queries.push({
type:"task",
key:"tasks",
fetch:"WorkProduct,Name,FormattedID,ToDo,Owner,LastUpdateDate,RevisionHistory",
query: "(LastUpdateDate > " + lastWorkDateWithoutTime + ")",
order: "LastUpdateDate desc"
});
And then extract the user name that made latest change by
// query last update
var lastrevision = task.RevisionHistory.Revisions[0];
task.LastUpdateBy = lastrevision.User;
But it’s not gonna work since I can’t access task.RevisionHistory.Revisions
You are almost there you just need to make sure to change the fetch to include the Revisions as well as the RevisionHistory.