SPServices/GetListItems Subfolders

Mar 29, 2012 at 6:15 PM

I am using GetListItems to pull back documents from a document library that has sub folders. I can use the CAMLQueryOptions <QueryOptions><ViewAttributes Scope="RecursiveAll"  /></QueryOptions> to pull back documents that are in sub folders. My problem is this, how can ii create an <a href to link back to the documents actual location. Is the full path to the document available anyway via CAML?

Mar 29, 2012 at 7:03 PM

The FileRef should point to the document's location.  Add that field your <ViewFields> and see if that's solves your problem.

 

Cheers,

Matt