(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/[email protected] [email protected]
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/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
- 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