Skip to main content
Nintex Community Menu Bar
Solved

How to add data and create new rows in repeating section?

  • August 6, 2019
  • 4 replies
  • 264 views

Forum|alt.badge.img+12

Hi,

 

I've a list which I'm querying and getting list of users and I've to populate that in a repeating section of another list.

 

Using collection operation, I know the count of users which I can use to for indexing the rows in update XML but I'm having difficulty creating the XML for the row and the complete XML of that repeating section. I'm trying to use Add a node option.

 

Can anyone help me? Please share the screenshot of update XML configuration if possible.

 

Thanks.

Best answer by SimonMuntz

Hi,

Lets pretend that my existing XML looks like below and I want to add a couple more names to it.

<?xml version="1.0" encoding="UTF-8"?>
<RepeaterData>
   <Version />
   <Items>
      <Item>
         <People type="System.String">i:0#.w|nintexart</People>
      </Item>
      <Item>
         <People type="System.String">i:0#.w|nintexhomer.simpson</People>
      </Item>
   </Items>
</RepeaterData>

To add more names I would need to add more nodes in the format:

      <Item>
         <People type="System.String">Name Here</People>
      </Item>

So the Query XML action would look like this:

Workflow design would look like this.

 

4 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • August 7, 2019

Hi,

Lets pretend that my existing XML looks like below and I want to add a couple more names to it.

<?xml version="1.0" encoding="UTF-8"?>
<RepeaterData>
   <Version />
   <Items>
      <Item>
         <People type="System.String">i:0#.w|nintexart</People>
      </Item>
      <Item>
         <People type="System.String">i:0#.w|nintexhomer.simpson</People>
      </Item>
   </Items>
</RepeaterData>

To add more names I would need to add more nodes in the format:

      <Item>
         <People type="System.String">Name Here</People>
      </Item>

So the Query XML action would look like this:

Workflow design would look like this.

 


Forum|alt.badge.img+12
  • Author
  • Rookie
  • August 7, 2019

@SimonMuntz thanks for your response.

 

Do I need to update item in every for loop? Can't I store the column value in the workflow variable, then use that variable as XML source and update the same variable with a new node information and at the end of for loop, update the item?


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • August 8, 2019
Hi,
With any solution there are always plenty of ways to go about it.
I think your suggestion will work and would make the workflow more efficient and put less load on the environemnt.

Forum|alt.badge.img+5
  • Novice
  • February 3, 2021
This worked perfect for me. Thanks!