Download: https://sites.google.com/site/sasivalipireddy/home/SPSiteDataQuery.png
- What are SPQuery and SPSiteDataQuery?
- SPSiteDataQuery properties?
- Difference between SPQuery and SPSiteDataQuery?
- What are the limitations of both?
- How the SPQuery and SPSiteDataQuery return?
- How to set the row limit to the both?
- Searching scope levels of SPQuery and SPSiteDataQuery?
- What is the max limit of querying the lists using SPSiteDataQuery?
- Is it possible to query the records across the site collection level using SPSiteDataQuery?
- What is the default row limit value for the SPQuery?
- SPQuery.RowLimit Property?
- To Query all Web sites in this site collection?
- How to query the specific lists only using SPSiteDataQuery?
- Difference between Caml and Linq queries?
- How to set the Max lists limit?
- what all are Errors you faced while working on SPSiteDataQuery?
- I have created a custom list called “Employees” in all the sites in a site collection and have added the data in all the lists. Now I want to query those specific lists only. What is the approach?
- How can consider hidden lists also in SPSiteDataQuery?
- Is it possible to do joins lists using SPQuery?
- How to query with the type: Single line of text, multiline of text, persons or groups, DateTime etc..
- How to get the folders and sub folders levels documents from the document library?
- How to query specific list using SPSiteDataQuery?
How to query specific list using SPSiteDataQuery?
Query.Lists=" <Lists><List ID=”960BF6F6-F264-4305-B3CB-BDB9BF8F67DF” /></Lists>" – query a specific list
Using Folder, FilesOnly, Recursive, RecursiveAll in SPquery in SharePoint
Query.Lists=" <Lists><List ID=”960BF6F6-F264-4305-B3CB-BDB9BF8F67DF” /></Lists>" – query a specific list
Using Folder, FilesOnly, Recursive, RecursiveAll in SPquery in SharePoint
Joins in SPQuery
SPQuery Quick Guide
- //Query on single line of text:
- <query><where><eq><fieldref name="Title"><value type="Text">SingleLineOfText</value></fieldref></eq></where></query>
- //Query on Multiline of text: - note use of [CDATA[] to avoid parsing errors
- <query><where><contains><fieldref name="Body"><value type="Text"><![CDATA[Search Criteria]]></value></fieldref></contains></where></query>
- //Query on Person or Group (By Name)
- <query><where><eq><fieldref name="Author"><value type="Text">Sasi Kumar Reddy</value></fieldref></eq></where></query>
- //Query on Person or Group (By ID)
- <query><where><eq><fieldref lookupid="TRUE" name="State"><value type="Lookup">4</value></fieldref></eq></where></query>
- //Query on SPUser ID
- <query><where><eq><fieldref lookupid="true" name="SlaesPerson">
- <value type="User">7</value> </fieldref></eq></where></query>
- //Query on SPUser Name
- <query><where><eq><fieldref name="SalesPerson"><value type="User">john</value></fieldref></eq>
- </where></query>
- //Query on DateTime Only
- <query><where><eq><fieldref name="Created"><value type="DateTime">2012-01-10</value></fieldref></eq></where></query>
- //Query on DateTime
- <query><where><eq><fieldref name="Created"><value includetimevalue="TRUE" type="DateTime"><today></today></value></fieldref></eq></where>></query>
- //Query on Lookup by text
- <query><where><eq><fieldref name="State"><value type="Lookup">SasiReddy</value></fieldref></eq></where></query>
- // Query on Lookup by ID
- <query><where><eq><fieldref lookupid="TRUE" name="State"><value type="Lookup">108</value></fieldref></eq></where></query>
- // Query on Today date
- <query><where><eq><fieldref name="Created"><value type="DateTime"><today></today></value></fieldref></eq></where></query>
- // Query on last week
- <query><where><eq><fieldref name="Created"><value type="DateTime"><today offsetdays="-7"></today></value></fieldref></eq></where></query>
- //Query to return only empty columns,
- query.ViewFields="<fieldref name="Description" nullable="TRUE">";
- </fieldref>
Best Reference:


No comments:
Post a Comment