<?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: Get Max ID of List &gt; 5,000 threshold</title><link>https://www.infopathdev.com:443/forums/thread/116568.aspx</link><pubDate>Tue, 27 Jun 2017 16:42:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116568</guid><dc:creator>meissen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=116568</wfw:commentRss><description>Thanks Hilary. I&amp;#39;ve been able to get around the max ID issue by creating a workflow in SharePoint which increments a record in a different table which keeps track of the max ID. Then InfoPath only has to query the one record from the &amp;quot;supporting table&amp;quot; to get the max ID and autonumber accordingly. Hopefully we&amp;#39;ll see a slight performance boost in the code execution doing it that way rather than querying the ~5000 record list.</description></item><item><title>Re: Get Max ID of List &gt; 5,000 threshold</title><link>https://www.infopathdev.com:443/forums/thread/116562.aspx</link><pubDate>Mon, 26 Jun 2017 15:16:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116562</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=116562</wfw:commentRss><description>Wow - yeah, it does sound to me like this data collection may be better suited to SQL than SharePoint, just because of the mass of data. However, as a work around, maybe you could use a REST query? That would give you much better filtering options. Be sure to add indexes to your list / library columns to improve performance, and talk to your SharePoint admin about increasing the threshold.</description></item><item><title>Get Max ID of List &gt; 5,000 threshold</title><link>https://www.infopathdev.com:443/forums/thread/116522.aspx</link><pubDate>Tue, 20 Jun 2017 14:39:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116522</guid><dc:creator>meissen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116522.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=116522</wfw:commentRss><description>Hi all,
&lt;br /&gt;&lt;br /&gt;
My InfoPath solution is only ~5 months into production and we&amp;#39;ve already hit the 5,000 list view threshold. Part of the steps for submitting the InfoPath form to SharePoint refreshes a query of the SharePoint list to get the max ID (similar to the auto-numbering File ID concept)... Only problem is that said list has now grown to over 5,000 entries and refreshing causes the SOAP error that I&amp;#39;ve exceeded the list view threshold. 
&lt;br /&gt;&lt;br /&gt;
So now I&amp;#39;m stuck -- how do you get the max ID of a list when the number of entries exceeds the threshold?
&lt;br /&gt;&lt;br /&gt;
I was thinking I could tell it just to return the top 1 record, sorted by ID in descending order... Or maybe filter the query by today-7 so it only returns records that are a week old...? But if I&amp;#39;m not sure how to implement that.
&lt;br /&gt;&lt;br /&gt;
All things considered - if I&amp;#39;ve hit 5,000 entries in ~5 months ... does it sound like I should stick with SharePoint lists or would it be more beneficial to rewrite the datasources for the InfoPath file and use SQL server instead?</description></item></channel></rss>