0

I have a SharePoint document library.

I need to access the file architecture in the library and also get the approval status for each file.

How can I get the information using SharePoint web service?

I tried to use List.GetListItems but it gave me the top level folders.

0

You should either call the GetListItems method recursively for each subfolders, or even better, you should call this method using the

<QueryOptions><ViewAttributes Scope='RecursiveAll' /></QueryOptions>

query option, that returns all items and subfolders. See a sample here.

If you need to perform the action from a web page via JavaScript, then I suggest you to use the SPServices library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.