On/Off Element in the output message based on input message element content

|  Posted: March 16, 2005  |  Categories: BizTalk Server

Lets take a sample condition where you want to map an element from the source schema to target schema if there is a particular value in the element.

Let me make it clear. Let us take a source schema as shown below:

<ns0:PO xmlns:ns0=’http://Saravana.Biztalk.Learning.Schemas.BasicPO1′>
<Order>
<OrderNumber>OrderNumb</OrderNumber>
<Status>OKs</Status>
</Order>
</ns0:PO>

if the incoming message has the value of the element “Status” = “OK” then we want the element “Status” to be present in the outgoing message, if the value is something else then we don’t need this element in the outgoing message.

Have you ever encountered such a problem? Solution for this problem in 4 easy steps.

1. Create a new map and configure the source and target schema

Drag a Logical Equal functoid and Advanced “Value Mapping” functionoid.

2. Set the Logical Equal functoid Input parameters

3. Set the Value Mapping functoid Input parameters

4. Configure and run the solution by creating a Receive port,Receive Location and Send port basic setup (As you guys know!!) and configuring the map in the receive port.

It’s that simple.

Author: Saravana Kumar

Saravana Kumar is the Founder and CTO of BizTalk360, an enterprise software that acts as an all-in-one solution for better administration, operation, support and monitoring of Microsoft BizTalk Server environments.

One Platform Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

One Platform - Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

One Platform - Operations, Monitoring and Analytics Software
ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

Back to Top