<?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>Workflow</title><link>https://www.infopathdev.com:443/forums/50.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Looping through repeating table and update stock levels</title><link>https://www.infopathdev.com:443/forums/thread/100236.aspx</link><pubDate>Mon, 24 Nov 2014 11:31:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100236</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=100236</wfw:commentRss><description>&lt;p&gt;Hi Marculos and thanks for posting!&lt;/p&gt;&lt;p&gt;To extract data from a repeating section, you will need to map it to a list. A standard ShP 2010/2013 workflow cannot extract repeating data from an InfoPath form. &lt;/p&gt;&lt;p&gt;There are two ways to map the repeating data to a list. You can use CAML or qRules (common code library). &lt;/p&gt;&lt;p&gt;You&amp;#39;ll want to do this from the form when it is submitted via rules on a button. Make sure to do this before the final submit. If the list mapping fails, you don&amp;#39;t want to submit the form.&lt;/p&gt;&lt;p&gt;Please&amp;nbsp;search for &amp;quot;repeating&amp;nbsp;data CAML&amp;quot; or &amp;quot;repeating data qRules&amp;quot;. There are many posts.&lt;/p&gt;&lt;p&gt;To do the calculation, you may&amp;nbsp;need to either a) read it into the form and update it vi a separate list, or b) use a calculated value in the first list (not sure this is possible).&lt;/p&gt;&lt;p&gt;Good luck and let us know if we can help you.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Patrick&amp;nbsp;&lt;/p&gt;</description></item><item><title>Looping through repeating table and update stock levels</title><link>https://www.infopathdev.com:443/forums/thread/100191.aspx</link><pubDate>Thu, 20 Nov 2014 19:47:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100191</guid><dc:creator>marculos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=100191</wfw:commentRss><description>Hi, 

Any ideas on how I can achieve this with a workflow or another way?

I have repeating data in a form and I want to update the stock levels in the secondary list in SharePoint.

ProductInStock list

Product         Price             Qty In Stock          Qty Required
Product X      19.99            5                            1
Product Y       18.99           3                             2

When the form is submitted I want the Qty In Stock to become Qty In Stock  - Qty Required. 

Can this be done with a workflow ? Appreciate any help here !</description></item></channel></rss>