Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Retrive a Folder in Document Library using REST
Gowtham Rajamanickam
Mar 23 2015 7:52 AM
678
Reply
//Retrieve all of the folders from root Site
function getFolders() {
var executor;
// Initialize the RequestExecutor with the app web URL.
executor = new SP.RequestExecutor(appweburl);
executor.executeAsync({
url: appweburl + "/_api/SP.AppContextSite(@target)/web/getfolderbyserverrelativeurl('/GowthamLibrary')/folders?@target='" + hostweburl + "'",
method: "GET",
headers: {
"Accept": "application/json; odata=verbose"
}, success: FoldersSuccessHandler,
error: FoldersErrorHandler
});
}
im creating app to retrive the folders from Library but im getting error.i think uRL formation is wrong.anyone can help me to fix this?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to access WCF service in sharepoint using ECMA Script
retrive the checkin comment using REST api in sharepoint