Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Sample queryoptions for GetListItems web service (WSS 2003)

  Asked By: Grace Lewis         Date: Jan 27, 2006      Category: Sharepoint      Views: 1191
 

I have been successfully working with the GetListItems web service,
retreiving all items from lists, but now I need more fine grained
control over it.
This is the web service call:
WSSWS.GetListItem(lisname as String,
viewname as String,
query as System.Xml.XmlNode,
viewfields as System.Xml.XmlNode,
rowlimit as String,
queryoptions as System.Xml.XmlNode)

Where can I find samples for the "query" XmlNode and for
the "queryoptions" XmlNode?
I have been searching without luck.
Basically I want to gather all items that have "Status = 'Closed', for
example. How is it done using the query and queryoptions parameters?
And then, how to grab the attachments in those?

Tagged:                

 

2 Answers Found

 
Answer #1       Answered By: Ariana Christensen          Answered On: Jan 27, 2006       

I found detailed information here:
msdn.microsoft.com/.../en-
us/spptsdk/html/soapmListsGetListItems_SV01034350.asp

 
Answer #2       Answered By: Darrius Whitfield          Answered On: Jan 27, 2006       

You have two options:

1. Pass a list view name with the filter you want
2. Pass a CAML query with the filter you want

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].