<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Check Out/Check In an Infopath form using a REST api call during form load and submit</title><link>https://www.infopathdev.com:443/forums/thread/105011.aspx</link><pubDate>Tue, 29 Dec 2015 15:51:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105011</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105011</wfw:commentRss><description>I think with REST you&amp;#39;ll have to manipulate the URL using a rule, then execute the query, but I&amp;#39;ve not tried this. What are you setting the query parameters to when you use SOAP? I think &amp;quot;Input string was not in a correct format&amp;quot; is probably coming from the query params.</description></item><item><title>Check Out/Check In an Infopath form using a REST api call during form load and submit</title><link>https://www.infopathdev.com:443/forums/thread/104992.aspx</link><pubDate>Wed, 23 Dec 2015 20:44:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104992</guid><dc:creator>frnorke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104992</wfw:commentRss><description>I would like to know if anyone has ever done this.  I have seen Hillary&amp;#39;s blog on doing this using SOAP from 2010; I&amp;#39;m wondering if anyone has done this using REST api calls (as data connections).

I have a web enabled form that runs on an SP2013 plaform.  I am unable to use Hillary&amp;#39;s example because of a curious problem in checking in the form.  According to the log errors I&amp;#39;m getting an encoding problem with the URL string.

&lt;p&gt;Here&amp;#39;s the error: The following query failed: CheckInFile (User: 0#.w|#####\#####k, Form Name: XXXXX X-XX Infopath form 20151203, IP: , Connection Target: http://XXXXXXXX/sites/mrepr/XX XXXXXXX XXXXXXXX Dataconnection Library/CheckInFile.udcx, Request: http://XXXXXXXXXXX/sites/mrepr/_layouts/15/FormServer.aspx?XmlLocation=/sites/mrepr/XXXXXXXXXXXXX/XXXXX-XXXXX-XXXXXX XXXXX XXXX-20151223-14-22-12.xml&amp;amp;ClientInstalled=true&amp;amp;DefaultItemOpen=1&amp;amp;Source=http://XXXXXXXXXXXX/sites/mrepr/XXXXXXXXXXXX/Forms/AllItems.aspx%23InplviewHash8dedc315-54d9-4201-a9f5-084ae912555a=SortField%253DModified-SortDir%253DDesc, Form ID: urn:schemas-microsoft-com:office:infopath:XXXXXXXXXXX-X-XX-Infopath-form-20151203:-myXSD-2010-02-06T02-27-03 Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.  Exception of type &amp;#39;Microsoft.SharePoint.SoapServer.SoapServerException&amp;#39; was thrown.  Input string was not in a correct format. The remote server returned an error: (500) Internal Server Error.)&lt;p&gt;

Since I can&amp;#39;t seem to solve this encoding problem (it seems to be the %25 being thrown into the strings but these aren&amp;#39;t strings that I have control over), I thought perhaps I could circumvent it by trying to use the REST to check in and check out the files when they are being edited.

Would some kind soul be willing to help me understand how to make the correct data connections to the infopath template?  When adding the data connection in the form: http://server/site/_api/web it&amp;#39;s somewhat overwhelming what you get in the form of choices.  I&amp;#39;m not really sure how to hook these up to a form title to call the REST check out and REST check in commands.  Thanks.

vr,
Kurt</description></item></channel></rss>