<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: UpdateListItems + CAML + File Attachment</title><link>https://www.infopathdev.com:443/forums/thread/58289.aspx</link><pubDate>Tue, 24 Aug 2010 22:01:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58289</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58289.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58289</wfw:commentRss><description>&lt;p&gt;No, qRules doesn&amp;#39;t generate CAML files -- it actually handles the entire submit process. You simply add some data connections and provide a mapping and the tool does the rest.&lt;/p&gt;</description></item><item><title>Re: UpdateListItems + CAML + File Attachment</title><link>https://www.infopathdev.com:443/forums/thread/58274.aspx</link><pubDate>Tue, 24 Aug 2010 14:16:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58274</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58274</wfw:commentRss><description>&lt;p&gt;Will the qRules generate CAML files for me?&amp;nbsp; I&amp;#39;m looking on this page &lt;a href="http://www.qdabra.com/en/products/qRules.aspx"&gt;http://www.qdabra.com/en/products/qRules.aspx&lt;/a&gt;&amp;nbsp;but it is not clear, I think if the page was revised to have more detailed information it might be more effective.&lt;/p&gt;</description></item><item><title>Re: UpdateListItems + CAML + File Attachment</title><link>https://www.infopathdev.com:443/forums/thread/58259.aspx</link><pubDate>Tue, 24 Aug 2010 06:41:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58259</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58259.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58259</wfw:commentRss><description>&lt;p&gt;I responded to the other post. Please read that and download the free &lt;a title="qRules v2.3 beta" href="https://download.yousendit.com/T1VtSkhUSEIrV3cwTVE9PQ"&gt;qRules v2.3 trial&lt;/a&gt; and you&amp;#39;ll have this working without code in 30 minutes. If you want to continue down the BizSupportOnline.net path, go for it, but we don&amp;#39;t support that. Sorry, but we have to pay for this forum in some way and qRules is that way. It will save you money and help support the forum. You can get a discount off of the already cheap price of $199 by providing a testimonial. &lt;/p&gt;</description></item><item><title>Re: UpdateListItems + CAML + File Attachment</title><link>https://www.infopathdev.com:443/forums/thread/58248.aspx</link><pubDate>Mon, 23 Aug 2010 19:37:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58248</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58248</wfw:commentRss><description>&lt;p&gt;looks like someone else has this same exact issue&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/10870/38710.aspx#38710"&gt;http://www.infopathdev.com/forums/p/10870/38710.aspx#38710&lt;/a&gt;&lt;/p&gt;</description></item><item><title>UpdateListItems + CAML + File Attachment</title><link>https://www.infopathdev.com:443/forums/thread/58232.aspx</link><pubDate>Mon, 23 Aug 2010 14:08:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58232</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58232</wfw:commentRss><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am trying to include an attachment in some already working code that creates a new item in a SharePoint list.&amp;nbsp; I have read that you can do this by including the attachment as a field in your CAML document.&amp;nbsp; The field will hold an encoded string that represents the file.&amp;nbsp; I want to do this using the CAML document.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is an example of the type of CAML document I am using already:&lt;br /&gt;&amp;nbsp;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt; &lt;br /&gt;&amp;lt;Batch OnError=&amp;quot;Continue&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Method ID=&amp;quot;1&amp;quot; Cmd=&amp;quot;New&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;Field Name=&amp;quot;Title&amp;quot; /&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;lt;/Method&amp;gt;&lt;br /&gt;&amp;lt;/Batch&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is an example of how I would encode the XML infopath form file&amp;nbsp;when I&amp;nbsp;attach the file to the CAML (if possible, as an encoded string):&lt;br /&gt;&lt;a href="http://www.bizsupportonline.net/blog/2009/01/submit-infopath-form-sharepoint-list-attachment/"&gt;http://www.bizsupportonline.net/blog/2009/01/submit-infopath-form-sharepoint-list-attachment/&lt;/a&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;string formXml = MainDataSource.CreateNavigator().OuterXml;&lt;br /&gt;byte[] attachment = Sytem.Text.Encoding.UTF8.GetBytes(formXml);&lt;br /&gt;item.Attachments.Add(&amp;quot;InfoPathForm.xml&amp;quot;, attachment);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is an example of what I mean, a typical SharePoint list that&amp;nbsp;can have&amp;nbsp;attachments on each item.&lt;br /&gt;&amp;nbsp;&lt;img title="SharePoint attachment" style="WIDTH:460px;HEIGHT:57px;" height="57" alt="SharePoint attachment" src="http://img835.imageshack.us/img835/2280/agenericlist.png" width="460" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having trouble finding any sources that explain how to set up the CAML document properly.&amp;nbsp; I believe I will be able to encode the file and insert it into the CAML without issue, but I&amp;#39;m not sure what the CAML needs to look like so that SharePoint will accept the field as an attachment.&lt;/p&gt;
&lt;div&gt;&amp;nbsp;Edit: I have seen this &lt;a href="http://www.bizsupportonline.net/browserforms/how-to-use-sharepoint-object-model-submit-data-infopath-browser-form-sharepoint-list.htm"&gt;http://www.bizsupportonline.net/browserforms/how-to-use-sharepoint-object-model-submit-data-infopath-browser-form-sharepoint-list.htm&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;but for some reason I am unable to complete steps 5 and 6:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;In the &lt;strong&gt;Project Explorer&lt;/strong&gt; window in &lt;strong&gt;Microsoft Visual Studio Tools for Applications&lt;/strong&gt;, right-click the node for the project name, and select &lt;strong&gt;Add Reference&lt;/strong&gt; from the context menu. 
&lt;li&gt;On the &lt;strong&gt;Add Reference&lt;/strong&gt; dialog box, select &lt;strong&gt;Windows® SharePoint® Services&lt;/strong&gt; from the list of components on the &lt;strong&gt;.NET&lt;/strong&gt; tab, and click &lt;strong&gt;OK&lt;/strong&gt;. &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</description></item></channel></rss>