Let's consider a scenario in which ShipAnyWhere is building a new version of an already existing Logic App. However, they do not want to roll out the new version to all customers. They would like to test the latest version of the Logic App with a customer, Contoso, who sends a very small number of orders on a daily basis. Once there are no issues found with the new version, it will be rolled out to all trading partners.
In order to achieve this, ShipAnyWhere has decided to make use of Azure APIM's ability to route messages based on content. In this case, Azure APIM needs to check the trading partner. If the trading partner is Contoso, the inbound message must be routed to a new Logic App, and if not, it has to be routed to the old version of the Logic App as shown:
This can be achieved by adding a policy in Azure APIM as...