Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/jfwells/jfwhome/wp-settings.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /home/jfwells/jfwhome/wp-settings.php:18) in /home/jfwells/jfwhome/wp-includes/feed-rss2-comments.php on line 8
Comments on: Querying subfolders in SharePoint lists using SPAPI and GetListItems() http://www.jfwhome.com/2009/11/11/querying-subfolders-in-sharepoint-lists-using-spapi-and-getlistitems/ Extraneous Thought Repository Sun, 05 Feb 2012 18:45:16 +0000 http://wordpress.org/?v=2.7.1 hourly 1 By: ved http://www.jfwhome.com/2009/11/11/querying-subfolders-in-sharepoint-lists-using-spapi-and-getlistitems/comment-page-1/#comment-1320 ved Thu, 06 Jan 2011 13:48:18 +0000 http://www.jfwhome.com/?p=61#comment-1320 just use the path of folder from document ibrary i.e. If document ibrary = doclib then use as: queryOption.InnerXml = <code><Folder>doclib/folder/sub_folder/</Folder></code> just use the path of folder from document ibrary i.e.
If document ibrary = doclib then use as:

queryOption.InnerXml =
<Folder>doclib/folder/sub_folder/</Folder>

]]>
By: ved http://www.jfwhome.com/2009/11/11/querying-subfolders-in-sharepoint-lists-using-spapi-and-getlistitems/comment-page-1/#comment-1319 ved Thu, 06 Jan 2011 13:44:01 +0000 http://www.jfwhome.com/?p=61#comment-1319 just use the path of folder from document ibrary i.e. If document ibrary = doclib then use as: queryOption.InnerXml = "doclib/folder/sub_folder/"; just use the path of folder from document ibrary i.e.
If document ibrary = doclib then use as:

queryOption.InnerXml = “doclib/folder/sub_folder/”;

]]>
By: Zafer http://www.jfwhome.com/2009/11/11/querying-subfolders-in-sharepoint-lists-using-spapi-and-getlistitems/comment-page-1/#comment-1284 Zafer Fri, 17 Dec 2010 21:41:03 +0000 http://www.jfwhome.com/?p=61#comment-1284 It's not working it returns all items and folders from the whole list, its like its been set to be recursive, any idea ? thanx heap It’s not working it returns all items and folders from the whole list, its like its been set to be recursive, any idea ?

thanx heap

]]>
By: devin http://www.jfwhome.com/2009/11/11/querying-subfolders-in-sharepoint-lists-using-spapi-and-getlistitems/comment-page-1/#comment-366 devin Wed, 19 May 2010 14:05:23 +0000 http://www.jfwhome.com/?p=61#comment-366 Thanks a bunch. This helped me a lot too. Also just to note, I was running this using the folder path from another query and when getListItems returns the results "ows_FileDirRef" has the folder id added to the front like this "17;#listName\folderName\subFolder", so if you want to use it you have to remove it with something like "result.Substring(result.IndexOf('#')+1)" Thanks a bunch. This helped me a lot too.
Also just to note, I was running this using the folder path from another query and when getListItems returns the results “ows_FileDirRef” has the folder id added to the front like this “17;#listName\folderName\subFolder”, so if you want to use it you have to remove it with something like “result.Substring(result.IndexOf(’#')+1)”

]]>
By: Mark http://www.jfwhome.com/2009/11/11/querying-subfolders-in-sharepoint-lists-using-spapi-and-getlistitems/comment-page-1/#comment-340 Mark Thu, 01 Apr 2010 08:20:49 +0000 http://www.jfwhome.com/?p=61#comment-340 thanks man, I was also having a hard time with this - i'm hating sharepoint at the moment but at least your article saved me a struggle. thanks man, I was also having a hard time with this - i’m hating sharepoint at the moment but at least your article saved me a struggle.

]]>