Releases: hso-nn/d365-cli
Resx and update fixes
Fixes for Resx and updating the project. Please update if you are on 1.5.0.
Resx support
Support for Resx files added. See wiki.
Query Functions support
Support for the Query Functions supported in conditions: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/tomorrow?view=dynamics-ce-odata-9
conditions: [{
attribute: 'number',
operator: 'Between',
value: [10,99]
}]
Creating project fills crm.json now
Due to relocating the crm.json file, the Create process did not find the file anymore. This is fixed.
setFormCustomizable
When deploying a managed solution it is recommended to set the forms to not customizable and not deletable. Following command will do the job for you.
hso-d365 setFormCustomizable true
hso-d365 setFormCustomizable false
You need to update your project after updating npm to migrate automatically to right project setup.
hso-d365 update
Update of package.json and update of Update
Package.json updated dependencies to non-vulnerable packages.
'hso-d365 update' fixes for updating webpack.config.js
FormUtil bulk method setDisabled
FormUtil.setDisabled
Form controls support setDisabled (executionContext.getFormContext().getControl(attr1).setDisabled(true/false).
On a form you may want to do it in a bulk way. This is possible using the FormUtil class.
FormUtil.setDisabled(executionContext, true/false, [attr1, attt2, attr3, etc]);
Clone support
Example of cloning a Quote
private static async clone(executionContext: Xrm.Events.EventContext): Promise<void> {
const formContext = executionContext.getFormContext(),
id = formContext.data.entity.getId(),
quote = await QuoteService.retrieveClone(id),
quote.name = 'Copy - ' + quote.name,
validation = await QuoteService.validateRecord(quote);
if (validation.isValid) {
try {
await QuoteService.createRecord(quote);
} catch (e) {
console.log(`${e.code} - ${e.message}`);
}
}
}