Map Loop Question

Home Page Forums BizTalk 2004 – BizTalk 2010 Map Loop Question

Viewing 1 reply thread
  • Author
    Posts
    • #16750

      In my source schema I have two nodes:

      <ContactName>Jones</ContactName>
      <ManagerName>Smith</ManagerName>

      and I'm mapping to:

      <Persons>
      <Person>
      <PA1 PersonType=something? />
      <PA2 PersonName=somethingelse? />
      </Person>
      </Persons>

      and I want the output to be:

      <Persons>
      <Person>
      <PA1 PersonType="Contact" />
      <PA2 PersonName="Jones" />
      </Person>
      <Person>
      <PA1 PersonType="Manager" />
      <PA2 PersonName="Smith" />
      </Person>
      </Persons>

      I have a loop that connects <ContactName> and <ManagerName> on the left, and <Person> on the right. It processes the PersonName attribute correctly (creating and populating two structures), but I can't for the life of me figure out how to hard code the PersonType attribute depending on whether I'm processing the <ContactName> or the <ManagerName>.

      Any help would be greatly appreciated!

       

       

    • #16751

      try logical string and value mapping functoid combination

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.