How to perform checks on incoming messages in Biztalk orchestrations

73 Views Asked by At

I am receiving a message from CRM in my Biztalk orchestration and that message contains one field called "Status" in it. Now I want my Orchestration to complete rest of the operations only if the status field is populated otherwise it should end. I know that we can use decide shape for decision making, but how do I check if the status field is populated or not to make decision? I have added the images of schema and orchestration.

Orchestration

Schema.

Searched on google and found nothing useful

2

There are 2 best solutions below

0
temp-user On BEST ANSWER

We did a workaround. We introduced a new API which will return Yes or No depending on which the orchestration will process further.

0
Dijkgraaf On

In your map, have a Logical Exist or Logical String functoid that checks for a value, and have a Scripting functoid set a value in your destination schema to True or False. That way it will exist and you can use it in your decision shape.

If as per your comments, the status field occurs more than once, you either need to use XPath expressions that evaluate multiple nodes, or have some logic in the mapping that uses the iteration functoid to just look at a particular node instance.