<?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>Form Submissions - Code runs after rules question</title><link>https://www.infopathdev.com:443/forums/thread/62651.aspx</link><pubDate>Wed, 29 Dec 2010 21:00:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62651</guid><dc:creator>DerekB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62651</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a suite of Infopath 2007 forms (designed for compatiblity with Infopath 2003).&amp;nbsp; The forms are&amp;nbsp;hosted on Sharepoint 2007 server.&amp;nbsp; The forms do range from the farily simple to the quite complex, involving 2-300 fields and up to 2000 lines of code to perform Active Directory searchs and whatnot.&amp;nbsp; The forms in their current state submit to Sharepoint, which makes decisions for us, eventually sending a link to the form to a shared e-mail box.&amp;nbsp; We use the forms to create Remedy tickets to process the user&amp;#39;s requests.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It&amp;#39;s time to move to the next level and have the forms themselves create the Remedy tickets.&amp;nbsp; In order to do this, I need to send a text e-mail from Sharepoint to the Remedy ticketing system (we need to do this quickly, so we don&amp;#39;t have time to have a web-service developed).&amp;nbsp; Unfortunately, this will involve using code (we are using VB Script) to merge the form fields together and build this text e-mail.&amp;nbsp; This has to be done as there are many controls that hide/unhide themselves based on other controls, as well as lots of repeating sections and tables.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have no issues with writing the code so that the form fields get merged into a few fields to pass into the Sharepoint library, but I&amp;#39;ve heard that submit rules run before the code, so obviously it won&amp;#39;t work very well.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Basically all I need to know is how to submit the form into the Sharepoint library using VB script.&amp;nbsp; What would be really spiffy is if I could point the code to the submit rules, rather than having to build the submit rules that I already have into the code that we&amp;#39;ll have to write.&lt;/p&gt;</description></item></channel></rss>