Skip to main content

Hi,

I'm creating a "Subscribe Newsletter Form" in Nintex Forms, where I'm using a repeating section with a People Control.

How can I extract the data from the repeating section to use it in Nintex Workflow for the workflow action "Send notification (E-Mail)"?

Thank you for your help.

- connect repeating section control to a plaintext multiple line text field

- set a name for each control within repeating section

- then in workflow use query XML action to parse repeating section's data from above configured list field

- use XPath expression like: //PeopleControlName to get all the values from a given control from repeating section. save results into a collection variable

- use collection variable in send notification action as mail addressee

have a look on example eg. here   


Hi Marian,

Please can you expand on this?  I am trying to achieve the same thing but it isn't working.

- I have created a dummy list which has a people picker control called 'Recipient'

- I put this control into a repeating section called 'RecipientSection'

- I connected the repeating section to a plaintext multiple line text field called 'ListofAll'

- I believe the connection is working correctly as the following screenshot suggests:

- I then created a workflow and added two actions: Query XML and Send Notification:

- I also added a collection variable called 'varRecipients'

- I completed the Query XML action as follows:

- I then added the variable to the Send Notification action:

When I create a new item in the list the workflow doesn't error, but I'm not receiving the email notifications that I'm expecting.

Please can you let me know if there is a flaw somewhere?

Many thanks!


- I have created a dummy list which has a people picker control called 'Recipient'

- I put this control into a repeating section called 'RecipientSection'

you cannot connect a control within repeating section to a list field.

- I completed the Query XML action as follows

you miss there a definition of source XML which you want to be parsed.

so put a reference to ListOfAll list field into XML input.

the rest seems to be correct.


Thanks, Marian.  You say to: connect repeating section control to a plaintext multiple line text field

I seem unable to do this.  That's why I connected the repeating section itself because this was the only way I could do it.  Have I misunderstood?


repeating section control  was meant as whole repeating section.

not as a single control within repeating section.

sorry if I made it confusing.

That's why I connected the repeating section itself because this was the only way I could do it.

that's correct.


Hi Marian,

- I created a people picker control called "Participant".

- I put this control into a repeating section, connected to a plain text multiple line text field called "Repeating Section")

- Workflow collection variable "ParticipantsList"

Query XML:

Send notification:

May you tell me what I'm doing wrong regarding this task?

Thank you!


Hi, I really struggled with this at first, but here was my solution in the end...

In my form my control name and repeating section are as follows:

  • control name = Participant
  • repeating section = RecipientSection

In my workflow I have 2 variables:

  • varRecipients (Collection)
  • varListofAll (Multiple lines of text)

My 'Query XML' action looks like this:

I inserted the variable varRecipients into the 'To:' field of my Send notification action.

Hopefully based on the information that I gave to you you can replicate this.

Best wishes,

Christina.


and what's the problem with it?

you do not get notifications? or?

have you tried to write ParticipantsList to log to see what values does it get populated with?


Hi Christina,

Thank you very much for your help but unfortunately I couldn't solve the problem,

even I tried the same steps as you described.

Best regards,

Hadri


Reply