Search code examples
biztalkbiztalk-2020

Distinguished field promotion against a TypedPolling generated schema


I'm trying to promote a field using Distinguished promotion so that I can filter the value on the initializing Receive shape by a specific value. The schema has been generated as a TypedPolling Envelope schema, and has been configured and setup to debatch on a MaxOccurs of 1.

Whenever I go into the Receive filter though, I can't find the Message/Distinguished field. I've also looked against Message Assignment and Expression editor shapes, but it doesn't appear anywhere. I've checked that the shape and message are both referencing the correct schema. I've also tried saving, refreshing, building and restarting VS, with no joy on any occasion.

Setting the required field in the schema to Distinguished

Unable to locate the distinguished property here


Solution

  • For message filtering (subscribing) it needs to be a Promoted Property, rather than a Distinguished Property (as what you have defined). So you need to have a Property Schema and add that field in the Property Fields.

    BizTalk Promotion dialogue

    Distinguished properties can only be used in an Orchestration assignment shapes, and not for subscribing in the initialization Receive shape, as they aren't promoted. In the assignment shape you would reference it by starting of with the message name, then a dot, and it would then bring up options for referencing the distinguished field. But you can't use this in the receive shape.