<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://connect.nintex.com/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>Workflow Action examples.</title><link>http://connect.nintex.com/forums/88/ShowForum.aspx</link><description>Examples of common workflow action configurations and usage in real world scenarios. Please note: these examples are provided as is and designed as a way to insipre your own creative thinking. They are illustrative examples, not ready-made solutions, and therefore are not specifically supported. Also please note these configurations were created for specific environments and may need to be modified to suit your environment. The product help files in Nintex Connect and inline inside the product contain all the specific action configuration information.</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Web Request: Copying a Document and Updating meta data (updatelistitems)</title><link>http://connect.nintex.com/forums/thread/6929.aspx</link><pubDate>Fri, 30 Oct 2009 19:11:30 GMT</pubDate><guid isPermaLink="false">3bc42a30-32af-4e84-97f0-c790da351aac:6929</guid><dc:creator>Peter D</dc:creator><slash:comments>0</slash:comments><comments>http://connect.nintex.com/forums/thread/6929.aspx</comments><wfw:commentRss>http://connect.nintex.com/forums/commentrss.aspx?SectionID=88&amp;PostID=6929</wfw:commentRss><description>&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;Using the Web Request action you can use the &lt;strong&gt;PUT&lt;/strong&gt;&amp;nbsp;command to copy a document to a remote farm and then use the &amp;lsquo;UpdateListItems&amp;rsquo; web service to update any associated meta data.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;Here is how I configured this in my test environment.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;I had 2 document libraries both with the same name, each in a different farm.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;img height="110" src="http://download.nintex.com/Connect_images/wae1/1.jpg" width="975" /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The first Web Request action was configured as follows:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;img height="750" src="http://download.nintex.com/Connect_images/wae1/2.jpg" width="616" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The URL is the URL to the destination farm with the new document name also included. &amp;nbsp;It is recommended you store this URL to a workflow text variable and then pass this to your web request actions, as it will be used in both.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;This action will copy the current item to the destination farm document library with a title of &amp;ldquo;test1.doc&amp;rdquo;.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;I then used another Web Request to update the associated meta data (in this case a field named &amp;lsquo;data&amp;rsquo;) calling the web service &amp;lsquo;UpdateListItems&amp;rsquo;.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;img height="1011" src="http://download.nintex.com/Connect_images/wae1/3.jpg" width="616" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The URL in this case is the destination farm URL with /_vti_bin/Lists.asmx added to the end.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The SOAP action is: &lt;strong&gt;&lt;font color="#0000ff"&gt;http://schemas.microsoft.com/sharepoint/soap/UpdateListItems&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The SOAP used was:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;lt;soap:Envelope xmlns:xsi=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;font color="#0000ff"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/font&gt;&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;&lt;font color="#0000ff"&gt;http://www.w3.org/2001/XMLSchema&lt;/font&gt;&lt;/a&gt;&amp;quot; xmlns:soap=&amp;quot;&lt;a href="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;font color="#0000ff"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/font&gt;&lt;/a&gt;&amp;quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;UpdateListItems xmlns=&amp;quot;&lt;a href="http://schemas.microsoft.com/sharepoint/soap/"&gt;&lt;font color="#0000ff"&gt;http://schemas.microsoft.com/sharepoint/soap/&lt;/font&gt;&lt;/a&gt;&amp;quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;listName&amp;gt;&lt;strong&gt;CAS-06438-V6FC&lt;/strong&gt;&amp;lt;/listName&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;updates&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;lt;Batch OnError=&amp;quot;Continue&amp;quot; PreCalc=&amp;quot;TRUE&amp;quot; ListVersion=&amp;quot;0&amp;quot;&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;Method ID=&amp;quot;1&amp;quot; Cmd=&amp;quot;Update&amp;quot;&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;ID&amp;quot;&amp;gt;1&amp;lt;/Field&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;FileRef&amp;quot;&amp;gt;&lt;a href="http://farm2/peter/CAS06438V6FC/test1.doc%3c/Field"&gt;&lt;font color="#0000ff"&gt;http://farm2/peter/CAS06438V6FC/test1.doc&amp;lt;/Field&lt;/font&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;data&amp;quot;&amp;gt;{ItemProperty:data}&amp;lt;/Field&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/Method&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;lt;/Batch&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;lt;/updates&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/UpdateListItems&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The ID field will always be 1, however the FIleRef must be the URL used in your first web request action where you used the PUT command.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;The 2&lt;sup&gt;nd&lt;/sup&gt; web request action is only required if you need to copy any meta data associated with your document.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 0pt;"&gt;&lt;span style="font-size:10pt;color:#17365d;font-family:'Arial','sans-serif';"&gt;For more information on the &amp;lsquo;UpdateListItems&amp;rsquo; web service please see: &lt;a href="http://msdn.microsoft.com/en-us/library/lists.aspx"&gt;http://msdn.microsoft.com/en-us/library/lists.aspx&lt;/a&gt;. &lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>