var getfileurl = document.getElementById("getfileurl").value;
//i have entered the path like /lib/folder/test.docx
alert(getfileurl);
var executor;
// Initialize the RequestExecutor with the app web URL.
executor = new SP.RequestExecutor(appweburl);
executor.executeAsync({
url: appweburl + "/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('" + getfileurl + "')/CheckInComment?@target='" + hostweburl + "'",
method: "GET",
headers: {
"Accept": "application/json; odata=verbose"
},
success: SuccessHandler,
error: ErrorHandler
});
i have tried to update,checkout,checkin AND retrive the checkin comment but im getting value does not fall within the range error? anything i have missed ?
Retrive the checkin comment using REST api in sharepoint
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Prasham SabadraRank #116 · 19.3K reputationPosted Mar 25, 2015, 1:15 AM EDT
Please check following link once
http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-the-check-in-comment-of-the-file-in-sharepoint-20/