Skip to main content
Nintex Community Menu Bar

Repeating Table Values in Mail

  • October 13, 2006
  • 1 reply
  • 5 views

Forum|alt.badge.img+7
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

1 reply

Forum|alt.badge.img+7
  • Author
  • October 13, 2006
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++;
}