<?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: How to build REST URL with logic</title><link>https://www.infopathdev.com:443/forums/thread/103738.aspx</link><pubDate>Thu, 27 Aug 2015 06:29:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103738</guid><dc:creator>Rommel Sta. Juana</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=103738</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Patrick,&lt;/p&gt;&lt;p&gt;Good day. Just have a question regarding on filtering a REST connection to a SharePoint List, is there a way to effectively build the REST Url if I&amp;#39;m getting the filter value from a couple of text box in an Infopath form. If I have 3 text box (where I&amp;#39;m getting the filter value from)and one of those 3 text box is blank, is there a way to include only on the REST URL the two text box that is not blank.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Rommel &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to build REST URL with logic</title><link>https://www.infopathdev.com:443/forums/thread/91453.aspx</link><pubDate>Wed, 17 Jul 2013 16:12:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91453</guid><dc:creator>jbrandenburg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=91453</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for your response.&amp;nbsp; I couldn&amp;#39;t get the Fx button to work - it seemed to populate incorrect syntax for the rest URL.&amp;nbsp; The odata site was very helpful.&amp;nbsp; I was able to create this:&lt;/p&gt;&lt;p&gt;webapp/departments/it/hd/_vti_bin/listdata.svc/ServiceRequests?$top=5&amp;amp;$orderby=Id desc&amp;amp;$filter=StatusValue eq &amp;#39;Completed&amp;#39; to accomplish what I needed.&lt;/p&gt;&lt;p&gt;Thank you for your help!&lt;/p&gt;</description></item><item><title>Re: How to build REST URL with logic</title><link>https://www.infopathdev.com:443/forums/thread/91346.aspx</link><pubDate>Sat, 13 Jul 2013 19:00:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91346</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91346.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=91346</wfw:commentRss><description>&lt;p&gt;Click on the Fx button and use the concat function to dynamically build it. For example: concat(&lt;a href="http://webapp/sitecollection/_vti_bin/listdata.svc/ListName?$filter=StatusValue%20ne%20&amp;#39;Assigned&amp;#39;%20&amp;amp;$orderby="&gt;http://webapp/sitecollection/_vti_bin/listdata.svc/ListName?$filter=StatusValue ne &amp;#39;Assigned&amp;#39; &amp;amp;$orderby=&lt;/a&gt;, Id) where Id is a field you insert from your form&amp;#39;s data source. To add the ModifiedDate and PriorityValue just add the condition to the filter using and/or operators. The free Sesame browser will help you build up expressions. Or, you can just look up the syntax on the OData site. Check out Hilary Stoupa&amp;#39;s Channel 9 hands-on-lab on MSDN too.&lt;/p&gt;</description></item><item><title>How to build REST URL with logic</title><link>https://www.infopathdev.com:443/forums/thread/91344.aspx</link><pubDate>Fri, 12 Jul 2013 20:14:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91344</guid><dc:creator>jbrandenburg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=91344</wfw:commentRss><description>Hi-
I have a functioning REST Web Service that populates a drop down list on an InfoPath form from a SharePoint list.  The URL looks something like this:

http://webapp/sitecollection/_vti_bin/listdata.svc/ListName?$filter=StatusValue ne &amp;#39;Assigned&amp;#39; &amp;amp;$orderby=Id desc


I am looking to enhance this URL by adding some additional logic that includes the following:

&amp;#39;ModifiedDate&amp;#39; greater than 7 days ago
&amp;#39;PriorityValue&amp;#39; between 1 and 5

I cannot figure out the syntax to get this to work.  Can anyone advise??

Much appreciated.

Thanks,
Jesse</description></item></channel></rss>