Knowledgebase

Welcome to my knowledgebase, which started as a place for me to file information that I find (mostly about Microsoft Dynamics 365/CRM) and are likely to forget. Many times I searched for something only to find my own article.

Feel free to browse and if any of the information helps you in your work then that is great.

Use the search box or the tag links to search for articles.

I’m an experienced Microsoft Dynamics 365/CRM Consultant and Microsoft Certified Trainer available for hire on an ad-hoc basis. Please contact me to see how I can help with your Microsoft Dynamics project. Find out more about me.

If you like, you can subscribe to be notified of new articles.

Recently updated articles

Buying Microsoft Dynamics CRM Workgroup Edition


29 Oct 2012

Microsoft Dynamics CRM Workgroup Edition is best purchased under an Open Value licence. Open Value includes the option to buy a step-up to Server Edition thus preserving the initial investment in the Workgroup edition licence.
An Open Value licence also means that you can spread payments over 3 years.

Clearing Workflow History


29 Oct 2012

There is no way to bulk clear out workflow history via the CRM application. It is possible to delete entries under Settings | System Jobs but that is restricted to a set number of records at a time (i.e. the number of records shown in a list view).

In Microsoft Dynamics CRM 4.0 workflow history is stored in two tables called asyncoperationbase and workflowlogbase. Details of all jobs that have run (whether workflow initiated or not) are stored in the asyncoperationbase table. For workflows, asyncoperationbase has one entry.

Deleting workflow logs using the SDK


29 Oct 2012

To delete workflow logs using the SDK use the RetrieveMultiple and Delete messages.

Set up a query expression that defines which workflow logs to delete. For example, to delete workflow logs older than a certain date:

// set the columns to be returned
ColumnSet cols = new ColumnSet();
cols.Attributes = new string[] { "createdon", "description" };

// Create the on or before condition
ConditionExpression dateCondition = new ConditionExpression();
dateCondition.AttributeName = "createdon";

Tables involved in Workflow and Workflow history


29 Oct 2012

This article http://support.microsoft.com/kb/968755  details how to clear up the AsyncOperationBase and WorkflowLogBase tables

Relevant Tables

Forcing CRM to clean up deleted records


29 Oct 2012

CRM 4.0 tidies up deleted records via the asynchronous service every 24 hours. To force an immediate cleanup follow the steps:

1. Mark the database to run the deletion tidy up immediately by running the following SQL commands. Take care to update the correct deletion service if your CRM server hosts multiple organizations.

USE MSCRM_CONFIG

Pages