cancel
Showing results for 
Search instead for 
Did you mean: 
Automation Master
Automation Master

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

Jump to solution

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.

Labels: (1)
0 Kudos
Reply
3 Replies
Nintex Employee
Nintex Employee

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

Jump to solution

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|nintex\bart</People>
      </Item>
      <Item>
         <People type="System.String">i:0#.w|nintex\homer.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:

UpdateNode.png

Workflow design would look like this.

WFDesign1.png

 

0 Kudos
Reply
Automation Master
Automation Master

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

Jump to solution

@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?

0 Kudos
Reply
Nintex Employee
Nintex Employee

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

Jump to solution
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.
0 Kudos
Reply