AnsweredAssumed Answered

Adding a node on a specific location in a repeating section

Question asked by glenda on Feb 6, 2018
Latest reply on Feb 14, 2018 by tposzytek

Hi guys, 

 

Scenario: 

I have a repeating section with approvers.

Name approverComments
Approver 1populated through WF
Approver 2populated through WF
Approver 3populated through WF

 

Each approver will get a task assigned (sequentially) and are also able to add an additional approver to the sequence. When approver 1 adds an additional approver, this approver needs to be added between node 1 and node 2 of my repeating section:

Name approverComments
Approver 1populated through WF
New approver
Approver 2populated through WF
Approver 3populated through WF

Did anyone get this working? 

 

I can add the user to the repeating section as an additional (last) node - not the correct outcome as the sequence of the approvers is important

Replacing the first node its contents with <ApproverName>name of first approver</ApproverName><ApproverComments>comments</ApproverComments></item><item><ApproverName>name of newly added approver</ApproverName><ApproverComments>comments</ApproverComments> results in an Update XML error and the workflow gets suspended. 

 

Hopefully someone made it happen already  

 

Thanks, 

Glenda

Outcomes