How Microsoft Dynamics CRM workflow definitions are stored in the SQL Database - Blogs
X
17Jun

How Microsoft Dynamics CRM workflow definitions are stored in the SQL Database

Microsoft Dynamics CRM, is one of the prominent offerings from the Microsoft Dynamics family of ERP and CRM products. It is quite a long time now that MS CRM is in the marketplace. We came across a very odd request from one of our clients, asking us develop a tool which will generate documentation for the CRM workflows. The definition of the workflows in MS CRM is quite intuitive and easy to use. However, the way this data is stored in the CRM SQL database is not that straight forward. Our team did some Googling without much success. All the blogs available seemed to be talking more about how to define workflows, what are the best practices to be followed while defining workflows, how effectively workflows can be used, etc. etc. But none of them really explained about how the metadata for the workflows are stored in the database. Also, MSDN was not of much help. So, we decided to look deeper into this subject ourselves.

We identified the table WorkflowBase, which seemed to be the most probable one to hold these metadata settings. We explored the table and found that our hunch was correct. We found most of the settings stored in this table, but were not able to find the step details. Then we found that these data components are stored in a field called XAML, in a XAML format. The data is not stored in a very straight forward manner, though it was good to know that the values stored were not encrypted. It is just that the data was formatted into some pre-defined XML format. You can see one of the sample XAML data below:

XAML

Decoding the XAML was another challenge faced by the team, because the way the data elements are stored is not something conventional, something which we don’t come across frequently. The team looked into the data to pinpoint the elements (text, numbers, etc.) to identify how the metadata is stored.  Finally, we were able to decipher the XAML formatted text stored and we made a sample output like the following: 

WFOutput

The journey through the storage layers of Dynamics CRM was quite interesting, and we were able to reach to what we had set-off for.

If you wish to discuss further on this topic, please feel free to drop me an email to chinmoy.roy@ecanarys.com

Related

An introduction about Node.JS and usage of its modules

Node.js is an open source, cross platform JavaScript runtime environment for developing variety of t...

Read More >

Creating a company and upload the packages through Rapid Start Services

In this blog we will see which tools can be used in Dynamics NAV to migrate data into the system and...

Read More >

NODE AFFINITY

The k8s node affinity feature is to ensure pods are hosted on a particular node. As mentioned in pre...

Read More >

Mobile Apps

There are mobile applications and then there are Applications done by Canarys. Smart phones and tabl...

Read More >

What is ingress and what are the components of it?

Ingress is a resource, which exposes the http and https from external sources to the services within...

Read More >

ASP .Net MVC Error Logging Using Elmah

ASP .Net MVC Error Logging Using Google ElmahIntroduction: ELMAH is one of the popular Library to lo...

Read More >

How to download YouTube Videos using .NET

Are you interested in downloading YouTube Videos?Want to download YouTube Videos in device specific ...

Read More >

Implementing Google account authentication in ASP.NET MVC

Implementation of Google OAuth in MVC application: Step 1: Create a Google OAuth application &n...

Read More >

How to make your software demos effective.

 I have been involved in Software demonstrations for the last 15+ years. I have done a lot of s...

Read More >

GitHub - Administration

To understand GitHub, you must first have an understanding of Git. Git is an open-source version con...

Read More >

Share

Try DevOpSmartBoard Ultimate complete Azure DevOps End-to end reporting tool

Sign Up

  • Recent
  • Popular
  • Tag
Monthly Archive
Subscribe
Name

Text/HTML
Contact Us
  • *
  • *