Gowtham Rajamanickam

Gowtham Rajamanickam

  • 74
  • 25.8k
  • 7.4m

retrive the checkin comment using REST api in sharepoint

Mar 25 2015 1:12 AM

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 ?


Answers (1)