locked
caml query on sharepoint list targeting list item properties RRS feed

  • Question

  • Hello :)

    Do you know if it is possible to create a caml query which queries a sharepoint list on the list item properties?  If this is not possible, I guess my only way is to loop through all list items and add conditions to check for properties.

    Many thanks!

    Thursday, January 5, 2012 9:11 AM

Answers

  • Do you mean the SPListItem.Properties collection?

    If yes, then I guess its not possible to use CAML to filter the Properties collection.

    If you want to filter items based on list's columns, then, yes its possible using CAML.


    Ram Prasad Meenavalli | MCTS SharePoint 2010 | MCPD SharePoint 2010
    • Marked as answer by HairyMike Thursday, January 5, 2012 9:23 AM
    • Unmarked as answer by HairyMike Thursday, January 5, 2012 9:23 AM
    • Marked as answer by HairyMike Thursday, January 5, 2012 1:52 PM
    Thursday, January 5, 2012 9:15 AM

All replies

  • Do you mean the SPListItem.Properties collection?

    If yes, then I guess its not possible to use CAML to filter the Properties collection.

    If you want to filter items based on list's columns, then, yes its possible using CAML.


    Ram Prasad Meenavalli | MCTS SharePoint 2010 | MCPD SharePoint 2010
    • Marked as answer by HairyMike Thursday, January 5, 2012 9:23 AM
    • Unmarked as answer by HairyMike Thursday, January 5, 2012 9:23 AM
    • Marked as answer by HairyMike Thursday, January 5, 2012 1:52 PM
    Thursday, January 5, 2012 9:15 AM
  • Thanks,

    thats what I was thinking.

    Regards

    Thursday, January 5, 2012 9:23 AM