Nintex for SharePoint Forum
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
I can get data out of a one repeating section, create items in another list, and update multiline field with a nice HTML table. But, i am not able to do the same more than one repeating section. Can someone put a solution?
Solved! Go to Solution.
I have tried below approach, the workflwo completed without any error but the items do not get created in another list:
Hi,
It is always good to output or log values as you go along to make things easier to debug.
I created an example of debugging and a nested repeating section senario.
Firstly my form. Note that only the Parent repeating section is connected to a SharePoint column. This SharePoint column must be a Multi Lines of Text column configured as Plain Text.
I'm a bit of an F1 fan so I have submitted a form with some racing drivers first and last names.
Two entries in the parent Repeating section which have two child entries.
When this form is submitted the XML in the list looks like this. (I fixed the formatting to make it easier to read.
<?xml version="1.0" encoding="UTF-8"?> <RepeaterData> <Version /> <Items> <Item> <NestedRepeater type="System.String">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;RepeaterData&gt;&lt;Version /&gt;&lt;Items&gt;&lt;Item&gt;&lt;First type=&quot;System.String&quot;&gt;Dan&lt;/First&gt;&lt;Second type=&quot;System.String&quot;&gt;Ric&lt;/Second&gt;&lt;/Item&gt;&lt;Item&gt;&lt;First type=&quot;System.String&quot;&gt;Nico&lt;/First&gt;&lt;Second type=&quot;System.String&quot;&gt;Hulk&lt;/Second&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/RepeaterData&gt;</NestedRepeater> </Item> <Item> <NestedRepeater type="System.String">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;RepeaterData&gt;&lt;Version /&gt;&lt;Items&gt;&lt;Item&gt;&lt;First type=&quot;System.String&quot;&gt;Seb&lt;/First&gt;&lt;Second type=&quot;System.String&quot;&gt;Vet&lt;/Second&gt;&lt;/Item&gt;&lt;Item&gt;&lt;First type=&quot;System.String&quot;&gt;Charles&lt;/First&gt;&lt;Second type=&quot;System.String&quot;&gt;Lec&lt;/Second&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/RepeaterData&gt;</NestedRepeater> </Item> </Items> </RepeaterData>
So we can see that the Nested Repeater XML is encoded.
In this example I will just pull out the first name of the first entry in the first nested repeater to show that it is possible. You can expand on this to retreive the rest of the elements data.
First action in the workflow will pull out the first nested XML.
The Information retreived will be encoded so we need a Build String action with an inline function to decode it.
IMPORTANT NOTE: This action needs to be run twice as the XML is not fully decoded on the first pass. This may have been the issue of the poster.
If we look at the output of the build string after the XML decode it will look like this. For debugging create a Multi Lines of Text column in SharePoint configured as plain text and use an update item action so see the output. If it is not formatted properly revist the above steps.
<?xml version="1.0" encoding="UTF-8"?> <RepeaterData> <Version /> <Items> <Item> <First type="System.String">Dan</First> <Second type="System.String">Ric</Second> </Item> <Item> <First type="System.String">Nico</First> <Second type="System.String">Hulk</Second> </Item> </Items> </RepeaterData>
We can now feed this variable into another Query XML action to retreive what ever I want.
I will extract "Dan" in this example.
Now that I have "Dan" stored in a variable I can do what ever I like with it such as creating an item in another list. In this example I have just logged it to the history list for debugging purposes.
Workflow Structure.
Thank you so much @SimonMuntz,
I will test it soon and let you know. 👍👍
I am not sure why nothing logs into history. Please find my list, form, and workflow in attachment. I really appreciate for you to looking into this.
Thank you @SimonMuntz, that worked!!
I need your help once more.
How would the workflow change if i wanted to write each repeating section rows in another list? Would you be able to send the .nwf file for the writing all parent and child items into another list?
See attached.
I am just logging the two output variables Fout and Sout but you can replace this action with a create item action to create an item with the two variables into two columns.
If you run this on the previous list template I gave you it will read the XML from the repdata column.
It does not matter how many repeating sections are in the master repeater or the Nested repeater this workflow will work it out.