(No longer maintained!)
An XrmToolBox plugin that can be used to generate the XRM form model for xrm-mock test framework.
The following packages must be installed before using the generated model:
@types/xrm
xrm-mock
For convenience, run the following command:
npm i -D @types/xrm@9.0.9 xrm-mock@3.4.10
The following packages must be installed before enabling online communication:
@types/jquery
@types/jsdom
@types/sinon
jquery
jsdom
node-dcrm-service
sinon
For convenience, run the following command:
npm i -D @types/jquery@3.3.28 @types/jsdom@12.2.0 @types/sinon@7.0.2 @types/xrm@9.0.9 jquery@3.3.1 jsdom@13.1.0 node-dcrm-service@3.1.4 sinon@7.2.2 xrm-mock@3.4.10
- Load data
- Choose an entity
- Select forms
- Generate model
- Build the model before testing
const builder = new XrmModel.ModelBuilder(new XrmModel.account());
builder.selectForm("Account");
builder.buildModel();
The model generated supports forwarding HTTP requests from Xrm.WebApi
and jQuery to CRM. Otherwise, the function must be stubbed manually, or an error will be produced.
const config = {<...>}
builder.enableOnlineWebApi(config)
.then(() => Contact_OnLoad());
Configuration details can be found at DynamicsCrm-NodeCrmService.
- camelCaseDave
- Fixed: tab and section names
- Fixed: compile issues with generated code
- Added: option to skip generate online communication code
- Fixed: Early-bound conflict with other plugins
- Added: boolean control support
- Changed: plugin colours
- Added: online communication option
- Added: option to specify org URL for use with
getClientUrl
...
- Initial release
Copyright © by Ahmed el-Sawalhy (Yagasoft) -- GPL v3 Licence