web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Extracting dbo.Workflow.xaml to rows and columns

(0) ShareShare
ReportReport
Posted on by 5

Apologies if this is posted in the wrong forum, new to the community and finding my way around.

The company I work for is starting to use Dynamics CRM and I'm building the process for loading the data through to our on premise DWH. They are planning to use Business Process Flows for key processes, but looking at the tables for each business process flows they field names aren't user friendly for reporting. Looking in dbo.workflow I can see the descriptive information for each field is held in the xaml field:

xaml-example.jpg

I'm attempting pull out the bits highlighted in green e.g. ControlDisplayName="Advisory Appointment Booked?" ControlId="igl_advisoryappointmentbookedboolean"

I've been able to do something similar with dbo.annotations to pull out notes related to an incident, e.g.

annotation-example.jpg

SELECT  
	objectid_entitytype,
	objectid,
	REPLACE(REPLACE(CONVERT(VARCHAR(1000),CONVERT(XML,notetext).query('/div/div')),'
',''),'
','') AS [Note as VARCHAR], notetext FROM annotation

but attempting the same with the workflow.xaml field is just returning an empty string so far.

workflow-example.jpg

SELECT
	Id,
	name,
	uniquename,
	xaml,
	CONVERT(XML,xaml).query('/Activty/mxswa.ActivityReference.TypeArguments/Activity/sco.Collection.TypeArguments/Activity/Sequence/mcwb.ControlControlDisplayName')
FROM
	workflow

I assume I'm missing some nodes from the xml query, but not sure what. Has anyone been able to do this before or know of anywhere else in the database where this isnt stored as an xml varchar.

Cheers

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans