Skip to content

Releases: hso-nn/d365-cli

Resx and update fixes

06 Apr 08:52
Compare
Choose a tag to compare

Fixes for Resx and updating the project. Please update if you are on 1.5.0.

Resx support

03 Apr 14:29
Compare
Choose a tag to compare

Support for Resx files added. See wiki.

Query Functions support

19 Mar 16:19
Compare
Choose a tag to compare

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

05 Mar 09:08
Compare
Choose a tag to compare

Due to relocating the crm.json file, the Create process did not find the file anymore. This is fixed.

setFormCustomizable

27 Feb 15:37
Compare
Choose a tag to compare

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

23 Jan 12:47
Compare
Choose a tag to compare

Package.json updated dependencies to non-vulnerable packages.
'hso-d365 update' fixes for updating webpack.config.js

FormUtil bulk method setDisabled

20 Jan 09:51
Compare
Choose a tag to compare

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

16 Jan 09:05
Compare
Choose a tag to compare

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}`);
            }
        }
    }