Good morning,
I'm trying to learn BizTalk and it's doing something I don't understand.
I'm outputting XML for employee addresses. A looping functoid creates two "Communication" elements. I expected to see the "CountrySubDivisionCode" as child elements in BOTH of them but they appear only once:
<ns0:Communication sequence="1">
<ns0:ChannelCode>Telephone</ns0:ChannelCode>
<ns0:UseCode>Personal</ns0:UseCode>
<ns0:DialNumber>1234567890</ns0:DialNumber>
<ns0:Address>
<ns0:AddressLine sequence="1">1234 My St</ns0:AddressLine>
<ns0:CityName>Some City</ns0:CityName>
<ns0:CountrySubDivisionCode name="County">Jackson</ns0:CountrySubDivisionCode>
<ns0:CountrySubDivisionCode name="State">MO</ns0:CountrySubDivisionCode>
<ns0:CountryCode>US</ns0:CountryCode>
<ns0:PostalCode>14099</ns0:PostalCode>
</ns0:Address>
</ns0:Communication>
<ns0:Communication sequence="2">
<ns0:ChannelCode>Telephone</ns0:ChannelCode>
<ns0:UseCode>Business</ns0:UseCode>
<ns0:DialNumber>0987654321</ns0:DialNumber>
<ns0:Address>
<ns0:AddressLine sequence="1">1234 My St</ns0:AddressLine>
<ns0:CityName>Some City</ns0:CityName>
<ns0:CountryCode>US</ns0:CountryCode>
<ns0:PostalCode>14099</ns0:PostalCode>
</ns0:Address>
</ns0:Communication>
The input is a flat schema.
There's one looping functiod for the Communication element with telephone numbers. It's output is the Communication element in the output schema.
There's another looping functoid with state and county inputs, It's output is the CountrySubDivisionCode element in the output schema.
How is the mapping deciding what is output and what is not? Is it not outputting the second set because they would be duplicates? All the tutorials I've found seem to be copy and paste versions of the same source material and it's pretty light.
Thanks