I am using REST to get item page by specific title,
My question is how to get the specific page in folder from list Pages
Here is my code snippet :
var folder; //folder
var source;
var page_title = "myPage";
$.ajax({
url: "https://app.gro.net/sites/ight/fr-fr/_api/web/Lists/getbytitle('Pages')/items?$filter=Title eq '" + page_title +"'",
type: "GET",
headers: {
"ACCEPT": "application/json;odata=verbose"
},
success: function (data) {
if (data.d.results[0]) {
//var source = $('#content')[0];
source = data.d.results[0].Desc;
}
},
error: function(){ //Error }
}});
Thank you for help
GetFolderByServerRelativeUrlto get items from specific folder. Refer this link - https://msdn.microsoft.com/en-us/library/office/dn450841.aspx?f=255&MSPPError=-2147217396 – Rohit Waghela Aug 23 '17 at 13:43