Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have a document library in sharepoint 2007 having 100 folders. I want to search document items contained in specific folders in that document library. Is there a way in caml query to specify multiple folders names (id)?.
Posted

1 solution

Add more elements for the additional folders as necessary

XML
<Where>
    <And>
        <Eq>
            <FieldRef ID='c042a256-787d-4a6f-8a8a-cf6ab767f12d' />
            <Value Type='Choice'>Folder</Value>
        </Eq>
        <Eq>
            <FieldRef ID='fa564e0f-0c70-4ab9-b863-0177e6ddd247' />
            <Value Type='Text'>Folder Name</Value>
        </Eq>
    </And>
</Where>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900