<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/55338.aspx</link><pubDate>Wed, 26 May 2010 18:54:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55338</guid><dc:creator>seanpanter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=55338</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been working on a simlar problem using InfoPath 2007 (Windows client solution) and SharePoint 2007 list data.&amp;nbsp; I don&amp;#39;t want to&amp;nbsp;receive all of the list items in the InfoPath form.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;article below&amp;nbsp;describes how you can use the OWSSVR.dll to&amp;nbsp;receive pre-filtered SharePoint list data in XML form.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=24"&gt;http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=24&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve connected to the OWSSRV.dll data from InfoPath to create a pre-filered SharePoint data source.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Query&amp;nbsp;the SharePoint list data:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;You can query a SharePoint list view using querystring parameters (see the article)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;You can pass querystring values to filter the XML list data (http://[servername]/[sitename]/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List={GUID}&amp;amp;XMLDATA=TRUE&amp;amp;FilterField1=[ColumnName]&amp;amp;FilterValue1=[FilterValue])&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Create an InfoPath Data Source:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Create a new InfoPath data source to &lt;em&gt;Receive Data&lt;/em&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Choose the &lt;em&gt;XML Document &lt;/em&gt;option&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Paste in your URL with querystring when prompted for the XML document &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;When&amp;nbsp;creating&amp;nbsp;a datasource in your InfoPath forms with OWSSVR.dll, if any of the columns are empty &lt;u&gt;on all list items&lt;/u&gt;, this column will not be represented in the InfoPath datasouce. It may be good practice to seed your list with at least one item that has values in all columns before creating the datasource.&amp;nbsp; I found this while migrating my form into a new environment and reconnecting it&amp;#39;s datasources.&lt;/p&gt;
&lt;p&gt;This should get you started with the OWSSRV.dll&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For Consideration&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;The XML data returns additional values for multi-select SharePoint list columns&amp;nbsp;ie// &lt;em&gt;2;#Request Received&lt;/em&gt;&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;You may want to look into using a Rule and the xPath function substring-after to clean these up&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;I&amp;#39;m not sure how well this would work&amp;nbsp;in an InfoPath Forms Server solution (?)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Microsoft recently published this article on using the OWSSVR.dll: &lt;a href="http://msdn.microsoft.com/en-us/library/ms478653.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms478653.aspx&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;</description></item><item><title>Re: Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/26918.aspx</link><pubDate>Sun, 02 Mar 2008 18:53:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26918</guid><dc:creator>LISpeedyG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=26918</wfw:commentRss><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;I too am very new to InfoPath and Sharepoint.&amp;nbsp; I am also trying to query a SP list in InfoPath, since the overhead becomes too burdensome once all the items in the lists are retrieved (1600).&amp;nbsp; And the form becomes unmanegeable.&lt;/p&gt;
&lt;p&gt;If you would not mind explainign how to set up your routine on the server I would greatly appreciate it.&amp;nbsp; And, also how you can pass a value from within the InfoPath form to have the SP List queried based on that value.&lt;/p&gt;
&lt;p&gt;Additionally, I was wondering in anyone else has come up with a solution that enables the form data (once returned from SP) to be dissociated from the SP DB.&amp;nbsp; This is needed since the form is emailied and we don&amp;#39;t want the&amp;nbsp;person receiving the form t ohave access to the DB.&amp;nbsp; However, in the current configuration, the recipient is presented with the UserName and Password request and if they do not have one the form is cancelled.&amp;nbsp; In our scenario we fill out one portion of the form with the recipients information and then the recipient is required to fill in the rest at their facility.&lt;/p&gt;
&lt;p&gt;If anyone can help with some (all) of these questions I would truly appreciate it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank You,&lt;/p&gt;
&lt;p&gt;Gus&lt;/p&gt;</description></item><item><title>Re: Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/26417.aspx</link><pubDate>Wed, 13 Feb 2008 08:53:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26417</guid><dc:creator>PNeate</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=26417</wfw:commentRss><description>&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;
&lt;div&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;Sure,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;To be honest I based my function on the following code &lt;/font&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms429658.aspx"&gt;&lt;font face="Arial" size="2"&gt;http://msdn2.microsoft.com/en-us/library/ms429658.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="340025208-13022008"&gt;&lt;font face="Arial" size="2"&gt;But here is my function :-&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Public&lt;/font&gt; &lt;font color="#0000ff"&gt;Shared&lt;/font&gt; &lt;font color="#0000ff"&gt;Function&lt;/font&gt; GetListItem(&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt; ListGUID &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;, _&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt; ListItemID &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;, _&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt; ListSiteURL &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;, _&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt; ReturnFieldList &lt;font color="#0000ff"&gt;As&lt;/font&gt; ArrayList) &lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt; XmlNode&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Declare and initialize a variable for the Lists Web service.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; listService &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt; SharepointServer.Lists()&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; sFieldList &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt; StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Authenticate the current user by passing their default &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;credentials to the Web service from the system credential cache.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;listService.Credentials = System.Net.CredentialCache.DefaultCredentials&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Set the Url property of the service for the path to a subsite.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;listService.Url = ListSiteURL&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Instantiate an XmlDocument object.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; xmlDoc &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt; System.Xml.XmlDocument()&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Assign values to the string parameters of the GetListItems method, &amp;#39;using GUIDs for the listName and viewName variables. For listName, &amp;#39;using the list display name will also work, but using the list GUID &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;is recommended. For viewName, only the view GUID can be used. &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Using an empty string for viewName causes the default view &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;to be used. &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; listName &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;String&lt;/font&gt; = ListGUID &lt;font color="#008000"&gt;&amp;#39; &amp;quot;{2D0B4CF8-0A1F-4FAC-83BA-C9278EB9C711}&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; viewName &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;String&lt;/font&gt; = &lt;font color="#0000ff"&gt;String&lt;/font&gt;.Empty &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; rowLimit &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;String&lt;/font&gt; = &lt;font color="#a31515"&gt;&amp;quot;150&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Use the CreateElement method of the document object to create &amp;#39;elements for the parameters that use XML.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; query &lt;font color="#0000ff"&gt;As&lt;/font&gt; System.Xml.XmlElement = xmlDoc.CreateElement(&lt;font color="#a31515"&gt;&amp;quot;Query&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; viewFields &lt;font color="#0000ff"&gt;As&lt;/font&gt; System.Xml.XmlElement = xmlDoc.CreateElement(&lt;font color="#a31515"&gt;&amp;quot;ViewFields&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; queryOptions &lt;font color="#0000ff"&gt;As&lt;/font&gt; System.Xml.XmlElement = xmlDoc.CreateElement(&lt;font color="#a31515"&gt;&amp;quot;QueryOptions&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;To specify values for the parameter elements (optional), assign CAML fragments to the InnerXml property of each element.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;query.InnerXml = &lt;/font&gt;&lt;font face="Arial" color="#a31515"&gt;&amp;quot;&amp;lt;Where&amp;gt;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&amp;quot;&amp;quot;Title&amp;quot;&amp;quot; /&amp;gt;&amp;quot;&lt;/font&gt;&lt;font face="Arial"&gt; _&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&amp;amp; &lt;/font&gt;&lt;font face="Arial"&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;Value Type=&amp;quot;&amp;quot;Text&amp;quot;&amp;quot;&amp;gt;&amp;quot;&lt;/font&gt; + ListItemID + &lt;font color="#a31515"&gt;&amp;quot;&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&amp;lt;/Where&amp;gt;&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;For&lt;/font&gt; x &lt;font color="#0000ff"&gt;As&lt;/font&gt; &lt;font color="#0000ff"&gt;Integer&lt;/font&gt; = 0 &lt;font color="#0000ff"&gt;To&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt; ReturnFieldList.Count - 1&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;sFieldList.Append(&lt;/font&gt;&lt;font face="Arial"&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;FieldRef Name=&amp;quot;&amp;quot;&amp;quot;&lt;/font&gt; &amp;amp; ReturnFieldList.Item(x) &amp;amp; &lt;font color="#a31515"&gt;&amp;quot;&amp;quot;&amp;quot; /&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font face="Arial" size="2"&gt;Next&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;viewFields.InnerXml = sFieldList.ToString&lt;/font&gt;&lt;/p&gt;&lt;font face="Arial" size="2"&gt;queryOptions.InnerXml = &lt;/font&gt;&lt;font color="#a31515"&gt;&lt;font face="Arial" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515"&gt; 
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font face="Arial" size="2"&gt;Try&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Declare an XmlNode object and initialize it with the XML response &amp;#39;from the GetListItems method. The last parameter specifies &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;the GUID of the Web site containing the list. Setting it to &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;Nothing causes the Web site specified by the Url property &lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000"&gt;&lt;font face="Arial" size="2"&gt;&amp;#39;to be used.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; nodeListItems &lt;font color="#0000ff"&gt;As&lt;/font&gt; System.Xml.XmlNode = listService.GetListItems(listName, viewName, query, viewFields, rowLimit, queryOptions, &lt;font color="#0000ff"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial" color="#0000ff"&gt;Return&lt;/font&gt;&lt;font face="Arial"&gt; nodeListItems&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;font color="#0000ff"&gt;Catch&lt;/font&gt; ex &lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt; System.Web.Services.Protocols.SoapException&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;Return&lt;/font&gt; &lt;font color="#0000ff"&gt;Nothing&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;End&lt;/font&gt; &lt;font color="#0000ff"&gt;Try&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Arial"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;Return&lt;/font&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font face="Arial" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt; 
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;End Function&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;Once this is on the web server you can add the web service as a secondary data source.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;Hope this helps and let me know if you need anything else and I try to help.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font face="Arial" color="#000000" size="2"&gt;Paul&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/div&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/26402.aspx</link><pubDate>Tue, 12 Feb 2008 18:40:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26402</guid><dc:creator>boverton</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=26402</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m doing something similar and would love to see your code for this solution.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brad&lt;/p&gt;</description></item><item><title>Re: Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/26252.aspx</link><pubDate>Thu, 07 Feb 2008 13:46:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26252</guid><dc:creator>PNeate</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=26252</wfw:commentRss><description>&lt;div&gt;&lt;font size="2"&gt;
&lt;p&gt;Thanks for the quick response.&amp;nbsp; After doing some more digging around I found that I could wrapper the Sharepoint GetListItem web service with one tailored to what I was trying to pull though then simply referencing this as a secondary data source.&amp;nbsp; Was a little fiddle but it works fine now.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/font&gt;&lt;/div&gt;</description></item><item><title>Re: Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/26095.aspx</link><pubDate>Wed, 30 Jan 2008 23:07:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26095</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=26095</wfw:commentRss><description>&lt;p&gt;The issue comes down to dynamic queries.&lt;/p&gt;
&lt;p&gt;In InfoPath you can not have a dynamic query on secondary data connections except with web services. SharePoint uses web services but it does not provide the ability to pass a parameter. You have to load&amp;nbsp;the whole list&amp;nbsp;and then use filters to only display the correct record.&lt;/p&gt;
&lt;p&gt;With a database table and a web service you can accomplish what you need but I do not think it is possible with a SharePoint list.&lt;/p&gt;
&lt;p&gt;Another possibility is keeping the help as an XML file and loading it with the form but if it is extensive than you are right performance would be better with a dynamic query. Also after about 2K&amp;nbsp;items your performance will suffer in SharePoint.&lt;/p&gt;</description></item><item><title>Query Sharepoint List -  From Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/26084.aspx</link><pubDate>Wed, 30 Jan 2008 17:30:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26084</guid><dc:creator>PNeate</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=26084</wfw:commentRss><description>&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span class="645052217-30012008"&gt;I am very new to InfoPath so if this is a simple thing to do just point me in the right direction, and I&amp;#39;ll be on my way. :o)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;I am trying to query a Sharepoint list so that instead of receiving&amp;nbsp;loads of&amp;nbsp;&lt;span class="645052217-30012008"&gt;data &lt;/span&gt;I only receive the one&amp;nbsp;&lt;span class="645052217-30012008"&gt;entry &lt;/span&gt;that matches an&lt;span class="645052217-30012008"&gt; &lt;/span&gt;&lt;span class="645052217-30012008"&gt;given&amp;nbsp;&lt;/span&gt;&lt;span class="645052217-30012008"&gt;ID&lt;/span&gt;.&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;To explain further&lt;span class="645052217-30012008"&gt;, &lt;/span&gt;I&lt;span class="645052217-30012008"&gt;&amp;#39;m&lt;/span&gt; plan to have a help text list&amp;nbsp;&lt;span class="645052217-30012008"&gt;within Sharepoint &lt;/span&gt;which particular user&lt;span class="645052217-30012008"&gt;s&lt;/span&gt; will have access to so they can write the&lt;span class="645052217-30012008"&gt;i&lt;/span&gt;r own help notes within a multi line text box.&amp;nbsp; Within my InfoPath form I have rich text boxes place&lt;span class="645052217-30012008"&gt;d&lt;/span&gt; at strategic&amp;nbsp;&lt;span class="645052217-30012008"&gt;locations, &lt;/span&gt;each one has an ID value&lt;span class="645052217-30012008"&gt; which corresponds to an entry within the help text Sharepoint list.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span class="645052217-30012008"&gt;As a user moves though the InfoPath form I would like to dynamically query the help text list with the help ID and pull pack the corresponding help text.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span class="645052217-30012008"&gt;I am using InfoPath 2007 with MOSS 2007.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span class="645052217-30012008"&gt;Thank you for your help.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>