<?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: submit attachment in infopath to sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/88882.aspx</link><pubDate>Thu, 11 Apr 2013 18:48:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88882</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88882</wfw:commentRss><description>&lt;p&gt;You can find code samples on MSDN - try this &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx"&gt;link&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: submit attachment in infopath to sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/88868.aspx</link><pubDate>Thu, 11 Apr 2013 15:47:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88868</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88868.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88868</wfw:commentRss><description>&lt;p&gt;Sorry for not being clear.&amp;nbsp;Yes it&amp;#39;s a browser form. But how would I write code using Sharepoint object model? I would like the code to submit data and infopath attachment to sharepoint list.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please advice.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: submit attachment in infopath to sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/88851.aspx</link><pubDate>Wed, 10 Apr 2013 23:44:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88851</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88851</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry, I&amp;#39;m confused by your question. If you are going to use the UpdateListItems method of the Lists web service - you have to submit CAML. You can create the CAML in code. If this is a browser form, you could use the SharePoint object model.&lt;/p&gt;</description></item><item><title>Re: submit attachment in infopath to sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/88800.aspx</link><pubDate>Tue, 09 Apr 2013 19:09:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88800</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88800</wfw:commentRss><description>&lt;p&gt;Is it possible to write code without using CAML?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to use this code using VSTA? If so, what references do I use?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// Retrieve the base64 encoded string of the attached file&lt;br /&gt;string attachedFile =&lt;br /&gt;&amp;nbsp;&amp;nbsp;MainDataSource.CreateNavigator().SelectSingleNode(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;quot;//my:document&amp;quot;, NamespaceManager).Value;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Convert the base64 encoded string into a byte array&lt;br /&gt;InfoPathAttachmentDecoder decoder =&lt;br /&gt;&amp;nbsp;&amp;nbsp;new InfoPathAttachmentDecoder(attachedFile);&lt;br /&gt;byte[] attachment = decoder.DecodedAttachment;&lt;br /&gt;string fileName = decoder.Filename;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Add the file as an attachment to the SharePoint list item&lt;br /&gt;item.Attachments.Add(fileName, attachment);&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Re: submit attachment in infopath to sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/88722.aspx</link><pubDate>Sat, 06 Apr 2013 16:37:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88722</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88722</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Not using CAML, I&amp;#39;m afraid - you can use CAML to create the list item and then code + AddAttachment web method to add the attachment (our product qRules also does this, if third party add ons are an option for you).&lt;/p&gt;</description></item><item><title>submit attachment in infopath to sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/88716.aspx</link><pubDate>Sat, 06 Apr 2013 06:04:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88716</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=88716</wfw:commentRss><description>Is it possible to submit attachment in infopath form to sharepoint list using CAML? 

Can you please share the code?



Thanks
Stara</description></item></channel></rss>