AnsweredAssumed Answered

In nintex workflow, how to insert rows in an infopath repeating table

Question asked by paulie.decesare@sumcousa.com on Jul 30, 2015
Latest reply on Aug 1, 2015 by eharris04

Hi All,

 

Backstory: We're running InfoPath 2010 and NW 2010 on SP 2010. In the workflow I inherited, an InfoPath form gets uploaded to SP via InfoPath Forms Services. In SharePoint, a new "document" (IP form) gets created, filled out, and then the user launches the workflow with all the promoted proerties from the IP form. Pretty standard. SO, a 2nd workflow has been created (for use once in a while) which does a Form Copy to a new form/workflow if the user needs to do that. The form copy workflow works fine for mostly every field: within Nintex Workflow, the fields of the 1st form are read into variables, then a new form is spun up, then the new form's fields are populated from the variables with the Update XML block.

 

Problem: The one thing that's hanging me up is a Repeating Table that has three colums with a text field in each. The user will click to Insert a New Row as needed so the row count is variable. I can loop and read the 1st form and get the data and the row count (so I know how many rows need to be on the new form), but I cannot figure out how to code the Update XML block's XPath to insert a new record or records in the new form, so I can populate it. My plan was to get the row count, insert all of the rows I need, then go back and loop it and populate it from the variables that hold the 1st form's data.

 

Anyone know how to programmatically insert new InfoPath Repeating Table rows from Nintex?

 

Thanks in Advance.

Paulie

Outcomes