Dynamics 365 CRM Tip #15

Your channel is records, not a setting

Bringing a channel into Customer Service is not a toggle or a plugin. It is records in msdyn_ tables, and the samples ship the schema that types every field of them.

A channel is rows, not a setting

Bringing your own channel into Customer Service is not a toggle and not a plugin. It is a load of records into msdyn_ tables: the workstream that decides how a conversation is routed, the capacity profile behind it, the context variables it carries, the routing configuration and its steps, the messages and tags. The samples in the Dynamics 365 apps samples repo include the schema for those tables, and it types every field a channel will write.

What the schema carries that the portal does not

Each field has a name, a type, and whether it is custom. Lookups name the table they point at, and each table carries the number the platform uses for it. So a channel being built against the raw API has a written type list to check its payloads against, instead of a designer to click through.

Reading it

The schemas are XML, one file per channel’s routing, with the channel’s config files sitting beside them, and small enough to read in an editor. Start with the SMS one: it covers the workstream table and the eight others behind it.

Select-String -Path sms-workstream-sample-schema.xml -Pattern '<field'

Promoting it up the chain

A channel is data, so promoting one is a data job: solutions and the Configuration Migration tool, in the order the dependencies run - templates, then routing rulesets, then capacity profiles, then queues, then the workstream and its channel settings, then a verification pass. The page is plain that part of it is out of scope: the account, the channel provider itself, agent configuration, and the AI and analytics settings stay where they are. The number is the other way round: the page lists phone number among the tables that come with the solution automatically, so it travels with the rest.

The table numbers do not always add up

Each table in the schema carries the number the platform uses for it, and the portal does not show you those. Worth having beside the field list, with one caveat: the sample schema gives the same number, 10468, to two different tables, msdyn_cannedmessage and msdyn_routingconfigurationstep. So read them as a hint rather than an identifier, and check the one you need against your own environment.