Skip to main content
Hi all,

in my InfoPath document I have a repeating table. The structure looks like this

<my:Parts>
<my:Part>
<my:Item>
<my:Quantity>
<my:Part>
<my:Parts>

Now in a Server Mail event I want to send a mail to a group which should look like this

Item1: <my:Item> Value
Quantity1: <my:Quantity>Value

Item2: <my:Item> Value
Quantity2: <my:Quantity>Value

and so on, depending on hwo many rows have been filled out in the repeating table.

Somehow I cannot figure out the correct loop to achieve this.
Can someone help ?

Thx in advance
Okay figured it out. You can use something like this:

.Value,"my:myFields/my:SpareParts/my:Parts/my:Part/my:tbItem");
foreach(System.Xml.XmlNode nextItemNode in nodeListItem)
{
strBody = strBody + "Item" + i + ":" + nextItemNode.InnerText;
strBody = strBody + "" + System.Environment.NewLine;
i++;
}

Reply