Send an email with all data from a subform

Send an email with all data from a subform

Using the following code, I have been able to include information from a subform into an on success email.

  1. " + input.SubForm1.Single_Line1 + "


However, it is only displaying the first value of the field. I have tried to fetch the data using the following code with different iterations  

  1. x = form1 [ID == input.Single_Line1] 

but I am always getting an error.

Is there any way I can display on an email all the records stored in the subform for a particular field? Thanks.