Hi I am using the following below code but for Getting 2 columns versions from SharePoint list . But when i updated any other column, its repeating/Appending and showing like below image
function getAllnotesList(requestId){
$().SPServices({
operation: "GetVersionCollection",
async: false,
strlistID: "2A5C55F1-EFF9-46B9-AC00-1325AD325FA8",
strlistItemID: requestId,
strFieldName: "InternalWorkerNotes",
completefunc: function (xData, Status) {
$(xData.responseText).find("Version").each(function(i) {// debugger;
//alert("Name: " + $(this).attr("AdditionComments"));
internalNotesList.push($(this).attr("InternalWorkerNotes"));
});
}
});
}
Shiv Sharma