Yogesh Vedpathak

Yogesh Vedpathak

  • 678
  • 1.4k
  • 191.1k

How to filter XML in service bus topics

Feb 17 2021 7:01 PM
Currently Its sending all orders data  into queue  I want to create rules in service bus topics subscription 
when MoveToLocation Id = 5 and 10 then only send data to queue 
 
 
xml 
below are sample xml 
 
<?xml version="1.0" encoding="utf-8"?>
<Orders xmlns="#">
<Order>
<OrderHeader>
<OrderId>123</OrderId>
<OrderType>EXTERNAL</OrderType>
<Note>
<DataTypes>Order</DataTypes>
<NoteUsed>External</NoteUsed>
<Value>ABC</Value>
</Note>
<OrderDateTime>2021-000:00:00Z</OrderDateTime>
<Status>Avaiable</Status>
<Action>Taken</Action>
<Currency>Rs</Currency>
<TotalAmount>2**</TotalAmount>
<SourceId>abc</SourceId>
<MoveToLocation>
<Id>3</Id>
<Type>house</Type>
</MoveToLocation>
</OrderHeader>
</Order>
</Orders>
 
 
Note (There is default rule exist for now in similar way i want to configure  )