XrmMockup365 1.21.0
dotnet add package XrmMockup365 --version 1.21.0
NuGet\Install-Package XrmMockup365 -Version 1.21.0
<PackageReference Include="XrmMockup365" Version="1.21.0" />
<PackageVersion Include="XrmMockup365" Version="1.21.0" />
<PackageReference Include="XrmMockup365" />
paket add XrmMockup365 --version 1.21.0
#r "nuget: XrmMockup365, 1.21.0"
#:package XrmMockup365@1.21.0
#addin nuget:?package=XrmMockup365&version=1.21.0
#tool nuget:?package=XrmMockup365&version=1.21.0
XrmMockup
XrmMockup is a tool which simulates your exact Dynamics 365/CRM instance locally including all of its logic in the form of workflows, plugins, and the security model.
This means you can write tests towards XrmMockup as though it was the real CRM instance, and check that it behaves as expected with all of your customizations.
You can test (and debug!) the entirety of the functionality you have implemented in your CRM system, with all the plugins and workflows automatically being run inside your test cases if necessary -- along with all the standard out-of-the-box CRM logic.
Find more in-depth information and examples in the wiki.
Supported frameworks
XrmMockup365 targets .NET Framework 4.6.2, .NET Framework 4.8, and .NET 10. The test suite runs on .NET Framework 4.8 and .NET 10, including regression coverage for plugins compiled against .NET Framework 4.6.2.
Features
- Simulates a target Dynamics 365/CRM instance by reading a local copy of its metadata.
- Supports executing most of the standard requests via an
IOrganizationService. - Automatically executes plugins and workflows during requests which trigger them.
- Enforces the security model of CRM, thus allowing you to test your security roles and business unit setup.
- Enables changing the time of the internal clock of XrmMockup during tests, which enables testing of time-based events (i.e waiting workflows or other time-sensitive business logic).
Releasing
Maintainers: see RELEASE.md for PR labels, repository setup, and independent product releases.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
-
.NETFramework 4.6.2
- Microsoft.CrmSdk.CoreAssemblies (>= 9.0.2.59)
- Microsoft.CrmSdk.Workflow (>= 9.0.2.60)
- Microsoft.CrmSdk.XrmTooling.CoreAssembly (>= 9.1.0.51)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.PowerFx.Dataverse.Eval (>= 1.3.2)
- System.Text.Json (>= 8.0.5)
- XrmPluginCore.Abstractions (>= 1.1.0)
-
.NETFramework 4.8
- Microsoft.CrmSdk.CoreAssemblies (>= 9.0.2.59)
- Microsoft.CrmSdk.Workflow (>= 9.0.2.60)
- Microsoft.CrmSdk.XrmTooling.CoreAssembly (>= 9.1.0.51)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.PowerFx.Dataverse.Eval (>= 1.3.2)
- System.Text.Json (>= 8.0.5)
- XrmPluginCore.Abstractions (>= 1.1.0)
-
net10.0
- DataverseConnection (>= 1.2.6)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.PowerFx.Dataverse.Eval (>= 1.3.2)
- Microsoft.PowerPlatform.Dataverse.Client (>= 1.2.10)
- UiPath.Workflow (>= 6.0.3)
- XrmPluginCore.Abstractions (>= 1.1.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on XrmMockup365:
| Package | Downloads |
|---|---|
|
PAMU_CDSce
This is a battery included mock for the Power Automate connector: Common Data Service (current environment) |
|
|
PAMU_CDS8
This is a battery included mock for the Power Automate connector: Common Data Service (current environment) |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.21.0 | 56 | 11/20/2026 |
| 1.20.3 | 170 | 11/13/2026 |
| 1.20.2 | 422 | 11/5/2026 |
| 1.20.1 | 2,608 | 9/1/2026 |
| 1.20.0 | 511 | 8/25/2026 |
| 1.19.1 | 3,076 | 8/7/2026 |
| 1.19.0 | 2,132 | 8/5/2026 |
| 1.18.8 | 249 | 7/14/2026 |
| 1.18.7 | 2,210 | 7/9/2026 |
| 1.18.6 | 176 | 7/7/2026 |
| 1.18.5 | 214 | 7/1/2026 |
| 1.18.4 | 151 | 7/1/2026 |
| 1.18.3 | 160 | 6/26/2026 |
| 1.18.2 | 1,078 | 6/25/2026 |
| 1.18.1 | 162 | 6/15/2026 |
| 1.18.0 | 1,183 | 3/23/2026 |
| 1.17.12-preview.1 | 99 | 3/4/2026 |
| 1.17.11 | 1,143 | 3/2/2026 |
| 1.17.10 | 1,609 | 2/24/2026 |
| 1.17.9 | 1,702 | 1/15/2026 |
### 1.21.0 - 20 November 2026
* Add: Add missing request handlers (#374)
* Add: Implement permission analyzer tool (#357)
* Add: Add support for AutoNumber attributes (#99)
* Add: Add opt-in workflow diagnostics (#381)
* Add: Enforce active alternate-key uniqueness on create and update (#383)
* Fix: Fix OperationCreatedOn initialization in plugin contexts (#376)
* Fix: Updated workflow property nodes to handle nullable lookups (#379)
* Fix: Response name assignment in request handler execution (#380)
* Change: Support .NET 4.8 plugins (#378)
* Change: Update dataverseconnection to v1.2.6 (#384)
### 1.20.3 - 13 November 2026
* Add: Support RowVersion and versionnumber (#366)
* Fix: Handle money input for calculated decimal and whole number fields (#365)
### 1.20.2 - 5 November 2026
* Chore: Refresh the internal `workflow` option set enums against current Dataverse, and use them in place of the hardcoded `category`/`statecode` literals in the workflow manager and metadata generator (#352)
* Add: `SendEmailFromTemplate` request support. The e-mail is created from the template and then sent through the existing `Create` and `SendEmail` handlers, so security, plugins and status transitions behave like a normal send. Template subject/body are stored by Dataverse as XSLT stylesheets, so they are rendered against the regarding record and the sending user; plain-text templates pass through unchanged (#331)
* Change: `InstantiateTemplate` now returns the merged template content instead of an empty e-mail, and rejects a missing or mistyped record like Dataverse does (#351)
* Fix: Filter unregistered Custom API parameters and pass tag as shared variable (#355)
* Add: Implement QueryExpression Aggregate Column Support (#358)
* Add: Support for all date comparitors in queries, cleanup and handling of BigInt as long (@AnyTick) (#359)
### 1.20.1 - 1 September 2026
* Fix: Match alternate keys by value, not reference (#350)
### 1.20.0 - 23 August 2026
* Breaking: XrmMockup365 now targets `net10.0` instead of `net8.0` (the `net462` target is unchanged). Required by DataverseConnection 1.2.x, which is a `net10.0` package
* Change: Updated `DataverseConnection` to 1.2.5. A bare `AddDataverse()` now defaults to `InteractiveBrowserCredential` instead of `DefaultAzureCredential`; set `DataverseCredentialType` to `azcli` or `devicecode` in configuration to change it
### 1.19.1 - 6 August 2026
* Fix: System-managed attributes copied onto Target for post-operation visibility no longer satisfy Update filtering attributes (#346)
### 1.19.0 - 5 August 2026
* Fix: Handle PrivilegeDepth.RecordFilter like PrivilegeDepth.Global instead of throwing exception (#345)
### 1.18.8 - 14 July 2026
* Fix: Align plugin Target with Dataverse for system-managed fields (#344)
### 1.18.7 - 9 July 2026
* Add: `QualifyLead` request support. (Based on code from @ladekarl in #51) (#343)
* Fix: Reject RetrieveMultiple queries filtering on non-existent attributes (#342)
### 1.18.6 - 7 July 2026
* Add: Collect Plugin Trace Logs and handle invalid formatting strings correctly (by throwing formatting exceptions) (#341)
Full release history: https://github.com/context-and-oss/XrmMockup/blob/master/RELEASE_NOTES.md