<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Retrieve Max value from SharePoint 2010 List in a multi user environment</title><link>https://www.infopathdev.com:443/forums/thread/102688.aspx</link><pubDate>Fri, 29 May 2015 15:30:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102688</guid><dc:creator>Surya Saripalli</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=102688</wfw:commentRss><description>Will setting max(Title) ie., max(FormNextNumber) resolve the issue?</description></item><item><title>Retrieve Max value from SharePoint 2010 List in a multi user environment</title><link>https://www.infopathdev.com:443/forums/thread/102687.aspx</link><pubDate>Fri, 29 May 2015 15:00:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102687</guid><dc:creator>Surya Saripalli</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=102687</wfw:commentRss><description>I have a UniqueNumberList (SharePoint 2010 List) I have NextNumber (Single line of text), FollowingNumber (calculation based on other columns) and NextUniqueID (calculation based on other columns)  
I have Infopath 2010 with Qdabra qrules 6.x. I set a SharePoint list data connection sorted by ID descending. In a multi user environment when I retrieve &amp;quot;NextNumber&amp;quot; just before submitting the form to assign a unique number to the form, I am getting duplicates.
How to get the next ID/ Max (NextNumber) from a via REST  or using query fields to return specific items via data connection?

Is there a better way to get an unique NextNumber?</description></item></channel></rss>