Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Mapping Question

Status
Not open for further replies.

ncscott

MIS
Jan 10, 2003
36
US
Okay, I'm pretty new to Biztalk mapping. I am creating a map to translate purchase orders from one format to another.

The Source document uses a single element for addresses, with the attribute "type", which will have a value of either "ShipTo" or "BillTo" depending on which address it is. The destination document has seperate elements for Ship To Address Name, Line 1, Line 2, City, State, etc., and Bill To Address, City, etc....you get the idea.

So I need to map the Address element and the sub-elements in the source spec to either the Bill To Address element or the Ship To Address element in the destination spec, based on the value of the "type" attribute. This seems pretty simple, and I imagine there is probably a built-in functoid that will help me, but I am not familiar enough with them to know.
 
Never mind, question withdrawn, I figured it out. The combination of the = functoid and the value mapping functoid does the job just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top